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 789cae9fc4b89059c78f34f869f1ddf5763a7c48..6ff7f9f50d02b60afe7a4afc0c6f9654f1f51f7d 100644 |
--- a/content/browser/indexed_db/indexed_db_transaction.h |
+++ b/content/browser/indexed_db/indexed_db_transaction.h |
@@ -30,6 +30,14 @@ class CONTENT_EXPORT IndexedDBTransaction |
public: |
typedef base::Callback<void(IndexedDBTransaction*)> Operation; |
+ enum State { |
+ CREATED, // Created, but not yet started by coordinator. |
+ STARTED, // Started by the coordinator. |
+ COMMITTING, // In the process of committing, possibly waiting for blobs |
+ // to be written. |
+ FINISHED, // Either aborted or committed. |
+ }; |
+ |
IndexedDBTransaction( |
int64 id, |
scoped_refptr<IndexedDBDatabaseCallbacks> callbacks, |
@@ -68,14 +76,6 @@ class CONTENT_EXPORT IndexedDBTransaction |
IndexedDBDatabase* database() const { return database_; } |
IndexedDBDatabaseCallbacks* connection() const { return callbacks_; } |
- enum State { |
- CREATED, // Created, but not yet started by coordinator. |
- STARTED, // Started by the coordinator. |
- COMMITTING, // In the process of committing, possibly waiting for blobs |
- // to be written. |
- FINISHED, // Either aborted or committed. |
- }; |
- |
State state() const { return state_; } |
bool IsTimeoutTimerRunning() const { return timeout_timer_.IsRunning(); } |