Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / content / browser / indexed_db / indexed_db_transaction.h
index 789cae9..bd0e543 100644 (file)
@@ -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,
@@ -65,16 +73,8 @@ class CONTENT_EXPORT IndexedDBTransaction
   }
   int64 id() const { return id_; }
 
-  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.
-  };
+  IndexedDBDatabase* database() const { return database_.get(); }
+  IndexedDBDatabaseCallbacks* connection() const { return callbacks_.get(); }
 
   State state() const { return state_; }
   bool IsTimeoutTimerRunning() const { return timeout_timer_.IsRunning(); }