Index: content/browser/indexed_db/indexed_db_callbacks.h |
diff --git a/content/browser/indexed_db/indexed_db_callbacks.h b/content/browser/indexed_db/indexed_db_callbacks.h |
index 8ab8ae40aaf059c388d59e6edd83cb7edba599b6..f33a74794a6dc49588fd3ab58042477c05d1e890 100644 |
--- a/content/browser/indexed_db/indexed_db_callbacks.h |
+++ b/content/browser/indexed_db/indexed_db_callbacks.h |
@@ -20,12 +20,19 @@ |
#include "third_party/WebKit/public/platform/WebIDBCallbacks.h" |
#include "url/gurl.h" |
+struct IndexedDBMsg_CallbacksSuccessIDBCursor_Params; |
+struct IndexedDBMsg_CallbacksSuccessCursorContinue_Params; |
+struct IndexedDBMsg_CallbacksSuccessValueWithKey_Params; |
+struct IndexedDBMsg_CallbacksSuccessValue_Params; |
+ |
namespace content { |
+class IndexedDBBlobInfo; |
class IndexedDBConnection; |
class IndexedDBCursor; |
class IndexedDBDatabase; |
class IndexedDBDatabaseCallbacks; |
struct IndexedDBDatabaseMetadata; |
+struct IndexedDBValue; |
class CONTENT_EXPORT IndexedDBCallbacks |
: public base::RefCounted<IndexedDBCallbacks> { |
@@ -70,29 +77,29 @@ class CONTENT_EXPORT IndexedDBCallbacks |
virtual void OnSuccess(scoped_refptr<IndexedDBCursor> cursor, |
const IndexedDBKey& key, |
const IndexedDBKey& primary_key, |
- std::string* value); |
+ IndexedDBValue* value); |
// IndexedDBCursor::Continue / Advance |
virtual void OnSuccess(const IndexedDBKey& key, |
const IndexedDBKey& primary_key, |
- std::string* value); |
+ IndexedDBValue* value); |
// IndexedDBCursor::PrefetchContinue |
virtual void OnSuccessWithPrefetch( |
const std::vector<IndexedDBKey>& keys, |
const std::vector<IndexedDBKey>& primary_keys, |
- const std::vector<std::string>& values); |
+ std::vector<IndexedDBValue>& values); |
// IndexedDBDatabase::Get (with key injection) |
- virtual void OnSuccess(std::string* data, |
+ virtual void OnSuccess(IndexedDBValue* value, |
const IndexedDBKey& key, |
const IndexedDBKeyPath& key_path); |
// IndexedDBDatabase::Get |
- virtual void OnSuccess(std::string* value); |
+ virtual void OnSuccess(IndexedDBValue* value); |
// IndexedDBDatabase::Put / IndexedDBCursor::Update |
- virtual void OnSuccess(const IndexedDBKey& value); |
+ virtual void OnSuccess(const IndexedDBKey& key); |
// IndexedDBDatabase::Count |
virtual void OnSuccess(int64 value); |
@@ -105,6 +112,10 @@ class CONTENT_EXPORT IndexedDBCallbacks |
virtual ~IndexedDBCallbacks(); |
private: |
+ void RegisterBlobsAndSend( |
+ const std::vector<IndexedDBBlobInfo>& blob_info, |
+ const base::Closure& callback); |
+ |
friend class base::RefCounted<IndexedDBCallbacks>; |
// Originally from IndexedDBCallbacks: |