Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / content / browser / indexed_db / indexed_db_callbacks.h
index 1bf5c11..4b8a217 100644 (file)
@@ -83,7 +83,7 @@ class CONTENT_EXPORT IndexedDBCallbacks
   virtual void OnSuccessWithPrefetch(
       const std::vector<IndexedDBKey>& keys,
       const std::vector<IndexedDBKey>& primary_keys,
-      std::vector<IndexedDBValue>& values);
+      std::vector<IndexedDBValue>* values);
 
   // IndexedDBDatabase::Get (with key injection)
   virtual void OnSuccess(IndexedDBValue* value,
@@ -106,6 +106,8 @@ class CONTENT_EXPORT IndexedDBCallbacks
 
   blink::WebIDBDataLoss data_loss() const { return data_loss_; }
 
+  void SetConnectionOpenStartTime(const base::TimeTicks& start_time);
+
  protected:
   virtual ~IndexedDBCallbacks();
 
@@ -132,6 +134,11 @@ class CONTENT_EXPORT IndexedDBCallbacks
   // Stored in OnDataLoss, merged with OnUpgradeNeeded response.
   blink::WebIDBDataLoss data_loss_;
   std::string data_loss_message_;
+
+  // The "blocked" event should be sent at most once per request.
+  bool sent_blocked_;
+  base::TimeTicks connection_open_start_time_;
+  DISALLOW_COPY_AND_ASSIGN(IndexedDBCallbacks);
 };
 
 }  // namespace content