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

Side by Side Diff: content/browser/indexed_db/indexed_db_callbacks.h

Issue 18075008: IndexedDB: Switch key/value handling from vector<char> to std::string (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 scoped_ptr<IndexedDBConnection> connection, 78 scoped_ptr<IndexedDBConnection> connection,
79 const content::IndexedDBDatabaseMetadata& metadata, 79 const content::IndexedDBDatabaseMetadata& metadata,
80 WebKit::WebIDBCallbacks::DataLoss data_loss); 80 WebKit::WebIDBCallbacks::DataLoss data_loss);
81 virtual void OnSuccess(scoped_ptr<IndexedDBConnection> connection, 81 virtual void OnSuccess(scoped_ptr<IndexedDBConnection> connection,
82 const content::IndexedDBDatabaseMetadata& metadata); 82 const content::IndexedDBDatabaseMetadata& metadata);
83 83
84 // IndexedDBDatabase::OpenCursor 84 // IndexedDBDatabase::OpenCursor
85 virtual void OnSuccess(scoped_refptr<IndexedDBCursor> cursor, 85 virtual void OnSuccess(scoped_refptr<IndexedDBCursor> cursor,
86 const IndexedDBKey& key, 86 const IndexedDBKey& key,
87 const IndexedDBKey& primary_key, 87 const IndexedDBKey& primary_key,
88 std::vector<char>* value); 88 std::string* value);
89 89
90 // IndexedDBCursor::Continue / Advance 90 // IndexedDBCursor::Continue / Advance
91 virtual void OnSuccess(const IndexedDBKey& key, 91 virtual void OnSuccess(const IndexedDBKey& key,
92 const IndexedDBKey& primary_key, 92 const IndexedDBKey& primary_key,
93 std::vector<char>* value); 93 std::string* value);
94 94
95 // IndexedDBCursor::PrefetchContinue 95 // IndexedDBCursor::PrefetchContinue
96 virtual void OnSuccessWithPrefetch( 96 virtual void OnSuccessWithPrefetch(
97 const std::vector<IndexedDBKey>& keys, 97 const std::vector<IndexedDBKey>& keys,
98 const std::vector<IndexedDBKey>& primary_keys, 98 const std::vector<IndexedDBKey>& primary_keys,
99 const std::vector<std::vector<char> >& values); 99 const std::vector<std::string>& values);
100 100
101 // IndexedDBDatabase::Get (with key injection) 101 // IndexedDBDatabase::Get (with key injection)
102 virtual void OnSuccess(std::vector<char>* data, 102 virtual void OnSuccess(std::string* data,
103 const IndexedDBKey& key, 103 const IndexedDBKey& key,
104 const IndexedDBKeyPath& key_path); 104 const IndexedDBKeyPath& key_path);
105 105
106 // IndexedDBDatabase::Get 106 // IndexedDBDatabase::Get
107 virtual void OnSuccess(std::vector<char>* value); 107 virtual void OnSuccess(std::string* value);
108 108
109 // IndexedDBDatabase::Put / IndexedDBCursor::Update 109 // IndexedDBDatabase::Put / IndexedDBCursor::Update
110 virtual void OnSuccess(const IndexedDBKey& value); 110 virtual void OnSuccess(const IndexedDBKey& value);
111 111
112 // IndexedDBDatabase::Count 112 // IndexedDBDatabase::Count
113 virtual void OnSuccess(int64 value); 113 virtual void OnSuccess(int64 value);
114 114
115 // IndexedDBDatabase::Delete 115 // IndexedDBDatabase::Delete
116 // IndexedDBCursor::Continue / Advance (when complete) 116 // IndexedDBCursor::Continue / Advance (when complete)
117 virtual void OnSuccess(); 117 virtual void OnSuccess();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // IndexedDBDatabase callbacks ------------------------ 152 // IndexedDBDatabase callbacks ------------------------
153 int64 host_transaction_id_; 153 int64 host_transaction_id_;
154 GURL origin_url_; 154 GURL origin_url_;
155 int32 ipc_database_id_; 155 int32 ipc_database_id_;
156 int32 ipc_database_callbacks_id_; 156 int32 ipc_database_callbacks_id_;
157 }; 157 };
158 158
159 } // namespace content 159 } // namespace content
160 160
161 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_ 161 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CALLBACKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698