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

Unified Diff: content/browser/in_process_webkit/indexed_db_callbacks.h

Issue 12326023: Proxy new WebData-based onSuccess() calls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix more .data()-related android bustage Created 7 years, 10 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
« no previous file with comments | « no previous file | content/browser/in_process_webkit/indexed_db_callbacks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/in_process_webkit/indexed_db_callbacks.h
diff --git a/content/browser/in_process_webkit/indexed_db_callbacks.h b/content/browser/in_process_webkit/indexed_db_callbacks.h
index e80862a259e60f1a54e86ab39ddbc67e22e9e117..4cec37af00c1c5863bfc18060953faeec541bd6b 100644
--- a/content/browser/in_process_webkit/indexed_db_callbacks.h
+++ b/content/browser/in_process_webkit/indexed_db_callbacks.h
@@ -9,6 +9,7 @@
#include "base/memory/ref_counted.h"
#include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h"
#include "googleurl/src/gurl.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebData.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCursor.h"
@@ -106,6 +107,19 @@ class IndexedDBCallbacks<WebKit::WebIDBCursor>
const WebKit::WebVector<WebKit::WebIDBKey>& primaryKeys,
const WebKit::WebVector<WebKit::WebSerializedScriptValue>& values);
+ virtual void onSuccess(WebKit::WebIDBCursor* idb_object,
+ const WebKit::WebIDBKey& key,
+ const WebKit::WebIDBKey& primaryKey,
+ const WebKit::WebData& value);
+ virtual void onSuccess(const WebKit::WebIDBKey& key,
+ const WebKit::WebIDBKey& primaryKey,
+ const WebKit::WebData& value);
+ virtual void onSuccess(const WebKit::WebData& value);
+ virtual void onSuccessWithPrefetch(
+ const WebKit::WebVector<WebKit::WebIDBKey>& keys,
+ const WebKit::WebVector<WebKit::WebIDBKey>& primaryKeys,
+ const WebKit::WebVector<WebKit::WebData>& values);
+
private:
// The id of the cursor this callback concerns, or -1 if the cursor
// does not exist yet.
@@ -153,11 +167,11 @@ class IndexedDBCallbacks<WebKit::WebDOMStringList>
DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks);
};
-// WebSerializedScriptValue is implemented in WebKit as opposed to being an
-// interface Chromium implements. Thus we pass a const ___& version and thus
-// we need this specialization.
+// WebData is implemented in WebKit as opposed to being an interface
+// Chromium implements. Thus we pass a const ___& version and thus we
+// need this specialization.
template <>
-class IndexedDBCallbacks<WebKit::WebSerializedScriptValue>
+class IndexedDBCallbacks<WebKit::WebData>
: public IndexedDBCallbacksBase {
public:
IndexedDBCallbacks(IndexedDBDispatcherHost* dispatcher_host,
@@ -170,6 +184,10 @@ class IndexedDBCallbacks<WebKit::WebSerializedScriptValue>
virtual void onSuccess(const WebKit::WebSerializedScriptValue& value,
const WebKit::WebIDBKey& key,
const WebKit::WebIDBKeyPath& keyPath);
+ virtual void onSuccess(const WebKit::WebData& value);
+ virtual void onSuccess(const WebKit::WebData& value,
+ const WebKit::WebIDBKey& key,
+ const WebKit::WebIDBKeyPath& keyPath);
virtual void onSuccess(long long value);
virtual void onSuccess();
virtual void onSuccess(const WebKit::WebIDBKey& value);
« no previous file with comments | « no previous file | content/browser/in_process_webkit/indexed_db_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698