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

Side by Side Diff: content/common/indexed_db/indexed_db_dispatcher.h

Issue 12129002: Remove deprecated IPC code for onUpgradeNeeded/onSuccess/metadata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 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_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 5 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 189 }
190 190
191 template<typename T> 191 template<typename T>
192 void init_params(T& params, WebKit::WebIDBCallbacks* callbacks_ptr) { 192 void init_params(T& params, WebKit::WebIDBCallbacks* callbacks_ptr) {
193 scoped_ptr<WebKit::WebIDBCallbacks> callbacks(callbacks_ptr); 193 scoped_ptr<WebKit::WebIDBCallbacks> callbacks(callbacks_ptr);
194 params.ipc_thread_id = CurrentWorkerId(); 194 params.ipc_thread_id = CurrentWorkerId();
195 params.ipc_response_id = pending_callbacks_.Add(callbacks.release()); 195 params.ipc_response_id = pending_callbacks_.Add(callbacks.release());
196 } 196 }
197 197
198 // IDBCallback message handlers. 198 // IDBCallback message handlers.
199 void OnSuccessIDBDatabaseOld(int32 ipc_thread_id,
200 int32 ipc_response_id,
201 int32 ipc_object_id);
202 void OnSuccessIDBDatabase(int32 ipc_thread_id, 199 void OnSuccessIDBDatabase(int32 ipc_thread_id,
203 int32 ipc_response_id, 200 int32 ipc_response_id,
204 int32 ipc_object_id, 201 int32 ipc_object_id,
205 const IndexedDBDatabaseMetadata& idb_metadata); 202 const IndexedDBDatabaseMetadata& idb_metadata);
206 void OnSuccessIndexedDBKey(int32 ipc_thread_id, 203 void OnSuccessIndexedDBKey(int32 ipc_thread_id,
207 int32 ipc_response_id, 204 int32 ipc_response_id,
208 const IndexedDBKey& key); 205 const IndexedDBKey& key);
209 void OnSuccessOpenCursor( 206 void OnSuccessOpenCursor(
210 const IndexedDBMsg_CallbacksSuccessIDBCursor_Params& p); 207 const IndexedDBMsg_CallbacksSuccessIDBCursor_Params& p);
211 void OnSuccessCursorContinue( 208 void OnSuccessCursorContinue(
(...skipping 19 matching lines...) Expand all
231 int64 value); 228 int64 value);
232 void OnSuccessUndefined( 229 void OnSuccessUndefined(
233 int32 ipc_thread_id, 230 int32 ipc_thread_id,
234 int32 ipc_response_id); 231 int32 ipc_response_id);
235 void OnError(int32 ipc_thread_id, 232 void OnError(int32 ipc_thread_id,
236 int32 ipc_response_id, 233 int32 ipc_response_id,
237 int code, 234 int code,
238 const string16& message); 235 const string16& message);
239 void OnIntBlocked(int32 ipc_thread_id, int32 ipc_response_id, 236 void OnIntBlocked(int32 ipc_thread_id, int32 ipc_response_id,
240 int64 existing_version); 237 int64 existing_version);
241 void OnUpgradeNeededOld(int32 ipc_thread_id,
242 int32 ipc_response_id,
243 int32 ipc_database_id,
244 int64 old_version);
245 void OnUpgradeNeeded(int32 ipc_thread_id, 238 void OnUpgradeNeeded(int32 ipc_thread_id,
246 int32 ipc_response_id, 239 int32 ipc_response_id,
247 int32 ipc_database_id, 240 int32 ipc_database_id,
248 int64 old_version, 241 int64 old_version,
249 const IndexedDBDatabaseMetadata& metdata); 242 const IndexedDBDatabaseMetadata& metdata);
250 void OnAbortOld(int32 ipc_thread_id, 243 void OnAbortOld(int32 ipc_thread_id,
251 int32 ipc_transaction_id, 244 int32 ipc_transaction_id,
252 int code, 245 int code,
253 const string16& message); 246 const string16& message);
254 void OnAbort(int32 ipc_thread_id, 247 void OnAbort(int32 ipc_thread_id,
(...skipping 27 matching lines...) Expand all
282 std::map<int32, RendererWebIDBCursorImpl*> cursors_; 275 std::map<int32, RendererWebIDBCursorImpl*> cursors_;
283 276
284 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; 277 std::map<int32, RendererWebIDBDatabaseImpl*> databases_;
285 278
286 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 279 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
287 }; 280 };
288 281
289 } // namespace content 282 } // namespace content
290 283
291 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 284 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698