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

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

Issue 18241003: IndexedDB: Remove IndexedDBCallbacksWrapper (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_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual base::TaskRunner* OverrideTaskRunnerForMessage( 53 virtual base::TaskRunner* OverrideTaskRunnerForMessage(
54 const IPC::Message& message) OVERRIDE; 54 const IPC::Message& message) OVERRIDE;
55 virtual bool OnMessageReceived(const IPC::Message& message, 55 virtual bool OnMessageReceived(const IPC::Message& message,
56 bool* message_was_ok) OVERRIDE; 56 bool* message_was_ok) OVERRIDE;
57 57
58 void FinishTransaction(int64 host_transaction_id, bool committed); 58 void FinishTransaction(int64 host_transaction_id, bool committed);
59 59
60 // A shortcut for accessing our context. 60 // A shortcut for accessing our context.
61 IndexedDBContextImpl* Context() { return indexed_db_context_.get(); } 61 IndexedDBContextImpl* Context() { return indexed_db_context_.get(); }
62 62
63 // The various IndexedDBCallbacks children call these methods to add the 63 // IndexedDBCallbacks call these methods to add the results into the
64 // results into the applicable map. See below for more details. 64 // applicable map. See below for more details.
65 int32 Add(IndexedDBCursor* idb_cursor); 65 int32 Add(IndexedDBCursor* idb_cursor);
66 int32 Add(WebIDBDatabaseImpl* idb_database, 66 int32 Add(WebIDBDatabaseImpl* idb_database,
67 int32 ipc_thread_id, 67 int32 ipc_thread_id,
68 const GURL& origin_url); 68 const GURL& origin_url);
69 69
70 void RegisterTransactionId(int64 host_transaction_id, const GURL& origin_url); 70 void RegisterTransactionId(int64 host_transaction_id, const GURL& origin_url);
71 71
72 IndexedDBCursor* GetCursorFromId(int32 ipc_cursor_id); 72 IndexedDBCursor* GetCursorFromId(int32 ipc_cursor_id);
73 73
74 int64 HostTransactionId(int64 transaction_id); 74 int64 HostTransactionId(int64 transaction_id);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 // Used to dispatch messages to the correct view host. 235 // Used to dispatch messages to the correct view host.
236 int ipc_process_id_; 236 int ipc_process_id_;
237 237
238 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); 238 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost);
239 }; 239 };
240 240
241 } // namespace content 241 } // namespace content
242 242
243 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_ 243 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698