Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(616)

Unified Diff: content/browser/indexed_db/indexed_db_transaction.h

Issue 19117005: IndexedDB: Coding conventions and cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/indexed_db_transaction.h
diff --git a/content/browser/indexed_db/indexed_db_transaction.h b/content/browser/indexed_db/indexed_db_transaction.h
index 70160e15329b826368e364f16e838bf66f8edd3a..4c375282b3330069e46c85dee6c6309f9ecfa3fc 100644
--- a/content/browser/indexed_db/indexed_db_transaction.h
+++ b/content/browser/indexed_db/indexed_db_transaction.h
@@ -8,7 +8,6 @@
#include <queue>
#include <set>
#include <stack>
-#include <vector>
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
@@ -24,12 +23,11 @@ class IndexedDBDatabaseCallbacks;
class IndexedDBTransaction : public base::RefCounted<IndexedDBTransaction> {
public:
- static scoped_refptr<IndexedDBTransaction> Create(
- int64 transaction_id,
- scoped_refptr<IndexedDBDatabaseCallbacks> callbacks,
- const std::vector<int64>& scope,
- indexed_db::TransactionMode,
- IndexedDBDatabase* db);
+ IndexedDBTransaction(int64 id,
+ scoped_refptr<IndexedDBDatabaseCallbacks> callbacks,
+ const std::set<int64>& object_store_ids,
+ indexed_db::TransactionMode,
+ IndexedDBDatabase* db);
virtual void Abort();
void Commit();
@@ -77,12 +75,6 @@ class IndexedDBTransaction : public base::RefCounted<IndexedDBTransaction> {
friend class base::RefCounted<IndexedDBTransaction>;
private:
- IndexedDBTransaction(int64 id,
- scoped_refptr<IndexedDBDatabaseCallbacks> callbacks,
- const std::set<int64>& object_store_ids,
- indexed_db::TransactionMode,
- IndexedDBDatabase* db);
-
enum State {
UNUSED, // Created, but no tasks yet.
START_PENDING, // Enqueued tasks, but backing store transaction not yet

Powered by Google App Engine
This is Rietveld 408576698