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

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

Issue 197753011: Add IndexedDBValue wrapper class to group blob info with bits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yet still happier clang, I hope. Created 6 years, 9 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
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 9cf1d41c3dc62181075b7f80022d33461e2d6a74..ba64555f21b7c7ea77f97402373a47984c054ddc 100644
--- a/content/browser/indexed_db/indexed_db_callbacks.h
+++ b/content/browser/indexed_db/indexed_db_callbacks.h
@@ -25,6 +25,7 @@ class IndexedDBCursor;
class IndexedDBDatabase;
class IndexedDBDatabaseCallbacks;
struct IndexedDBDatabaseMetadata;
+struct IndexedDBValue;
class CONTENT_EXPORT IndexedDBCallbacks
: public base::RefCounted<IndexedDBCallbacks> {
@@ -70,29 +71,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);
+ const 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);
« no previous file with comments | « content/browser/indexed_db/indexed_db_blob_info.h ('k') | content/browser/indexed_db/indexed_db_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698