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

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

Issue 10917099: Chromium side of "consolidate two-phase connection to avoid race conditions". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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) 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_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 int32 thread_id, 126 int32 thread_id,
127 int32 response_id, 127 int32 response_id,
128 const string16& version, 128 const string16& version,
129 WebKit::WebExceptionCode* ec); 129 WebKit::WebExceptionCode* ec);
130 void OnTransaction(int32 thread_id, 130 void OnTransaction(int32 thread_id,
131 int32 idb_database_id, 131 int32 idb_database_id,
132 const std::vector<string16>& names, 132 const std::vector<string16>& names,
133 int32 mode, 133 int32 mode,
134 int32* idb_transaction_id, 134 int32* idb_transaction_id,
135 WebKit::WebExceptionCode* ec); 135 WebKit::WebExceptionCode* ec);
136 void OnOpen(int32 idb_database_id, int32 thread_id, int32 response_id);
137 void OnClose(int32 idb_database_id); 136 void OnClose(int32 idb_database_id);
138 void OnDestroyed(int32 idb_database_id); 137 void OnDestroyed(int32 idb_database_id);
139 138
140 IndexedDBDispatcherHost* parent_; 139 IndexedDBDispatcherHost* parent_;
141 IDMap<WebKit::WebIDBDatabase, IDMapOwnPointer> map_; 140 IDMap<WebKit::WebIDBDatabase, IDMapOwnPointer> map_;
142 WebIDBObjectIDToURLMap database_url_map_; 141 WebIDBObjectIDToURLMap database_url_map_;
143 }; 142 };
144 143
145 class IndexDispatcherHost { 144 class IndexDispatcherHost {
146 public: 145 public:
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_; 307 scoped_ptr<CursorDispatcherHost> cursor_dispatcher_host_;
309 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_; 308 scoped_ptr<TransactionDispatcherHost> transaction_dispatcher_host_;
310 309
311 // Used to dispatch messages to the correct view host. 310 // Used to dispatch messages to the correct view host.
312 int process_id_; 311 int process_id_;
313 312
314 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost); 313 DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBDispatcherHost);
315 }; 314 };
316 315
317 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_ 316 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698