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

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: remove unused messages Created 9 years, 3 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) 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 int32 id); 143 int32 id);
144 144
145 static int32 TransactionId(const WebKit::WebIDBTransaction& transaction); 145 static int32 TransactionId(const WebKit::WebIDBTransaction& transaction);
146 146
147 private: 147 private:
148 // IDBCallback message handlers. 148 // IDBCallback message handlers.
149 void OnSuccessNull(int32 response_id); 149 void OnSuccessNull(int32 response_id);
150 void OnSuccessIDBDatabase(int32 response_id, int32 object_id); 150 void OnSuccessIDBDatabase(int32 response_id, int32 object_id);
151 void OnSuccessIndexedDBKey(int32 response_id, const IndexedDBKey& key); 151 void OnSuccessIndexedDBKey(int32 response_id, const IndexedDBKey& key);
152 void OnSuccessIDBTransaction(int32 response_id, int32 object_id); 152 void OnSuccessIDBTransaction(int32 response_id, int32 object_id);
153 void OnSuccessOpenCursor(int32 response_id, int32 object_id); 153 void OnSuccessOpenCursor(int32 response_id, int32 object_id,
154 const IndexedDBKey& key,
155 const IndexedDBKey& primary_key,
156 const SerializedScriptValue& value);
154 void OnSuccessSerializedScriptValue(int32 response_id, 157 void OnSuccessSerializedScriptValue(int32 response_id,
155 const SerializedScriptValue& value); 158 const SerializedScriptValue& value);
156 void OnError(int32 response_id, int code, const string16& message); 159 void OnError(int32 response_id, int code, const string16& message);
157 void OnBlocked(int32 response_id); 160 void OnBlocked(int32 response_id);
158 void OnAbort(int32 transaction_id); 161 void OnAbort(int32 transaction_id);
159 void OnComplete(int32 transaction_id); 162 void OnComplete(int32 transaction_id);
160 void OnVersionChange(int32 database_id, const string16& newVersion); 163 void OnVersionChange(int32 database_id, const string16& newVersion);
161 164
162 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be 165 // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be
163 // destroyed and used on the same thread it was created on. 166 // destroyed and used on the same thread it was created on.
164 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_; 167 IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> pending_callbacks_;
165 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer> 168 IDMap<WebKit::WebIDBTransactionCallbacks, IDMapOwnPointer>
166 pending_transaction_callbacks_; 169 pending_transaction_callbacks_;
167 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer> 170 IDMap<WebKit::WebIDBDatabaseCallbacks, IDMapOwnPointer>
168 pending_database_callbacks_; 171 pending_database_callbacks_;
169 172
170 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 173 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
171 }; 174 };
172 175
173 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_ 176 #endif // CONTENT_RENDERER_INDEXED_DB_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698