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

Side by Side Diff: content/renderer/indexed_db_dispatcher.h

Issue 7834006: Consolidate key, primary key, value cursor messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 2 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
« no previous file with comments | « content/common/indexed_db_messages.h ('k') | content/renderer/indexed_db_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDERER_INDEXED_DB_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_
6 #define CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ 6 #define CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/nullable_string16.h" 10 #include "base/nullable_string16.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 int32 id); 149 int32 id);
150 150
151 static int32 TransactionId(const WebKit::WebIDBTransaction& transaction); 151 static int32 TransactionId(const WebKit::WebIDBTransaction& transaction);
152 152
153 private: 153 private:
154 // IDBCallback message handlers. 154 // IDBCallback message handlers.
155 void OnSuccessNull(int32 response_id); 155 void OnSuccessNull(int32 response_id);
156 void OnSuccessIDBDatabase(int32 response_id, int32 object_id); 156 void OnSuccessIDBDatabase(int32 response_id, int32 object_id);
157 void OnSuccessIndexedDBKey(int32 response_id, const IndexedDBKey& key); 157 void OnSuccessIndexedDBKey(int32 response_id, const IndexedDBKey& key);
158 void OnSuccessIDBTransaction(int32 response_id, int32 object_id); 158 void OnSuccessIDBTransaction(int32 response_id, int32 object_id);
159 void OnSuccessOpenCursor(int32 response_id, int32 object_id); 159 void OnSuccessOpenCursor(int32 response_id, int32 object_id,
160 const IndexedDBKey& key,
161 const IndexedDBKey& primary_key,
162 const SerializedScriptValue& value);
160 void OnSuccessStringList(int32 response_id, 163 void OnSuccessStringList(int32 response_id,
161 const std::vector<string16>& value); 164 const std::vector<string16>& value);
162 void OnSuccessSerializedScriptValue(int32 response_id, 165 void OnSuccessSerializedScriptValue(int32 response_id,
163 const SerializedScriptValue& value); 166 const SerializedScriptValue& value);
164 void OnError(int32 response_id, int code, const string16& message); 167 void OnError(int32 response_id, int code, const string16& message);
165 void OnBlocked(int32 response_id); 168 void OnBlocked(int32 response_id);
166 void OnAbort(int32 transaction_id); 169 void OnAbort(int32 transaction_id);
167 void OnComplete(int32 transaction_id); 170 void OnComplete(int32 transaction_id);
168 void OnVersionChange(int32 database_id, const string16& newVersion); 171 void OnVersionChange(int32 database_id, const string16& newVersion);
169 172
170 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be 173 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be
171 // destroyed and used on the same thread it was created on. 174 // destroyed and used on the same thread it was created on.
172 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; 175 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_;
173 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer> 176 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer>
174 pending_transaction_callbacks_; 177 pending_transaction_callbacks_;
175 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> 178 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer>
176 pending_database_callbacks_; 179 pending_database_callbacks_;
177 180
178 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 181 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
179 }; 182 };
180 183
181 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ 184 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/common/indexed_db_messages.h ('k') | content/renderer/indexed_db_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698