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

Side by Side Diff: content/common/indexed_db/indexed_db_dispatcher.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_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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 void RequestIDBFactoryGetDatabaseNames( 68 void RequestIDBFactoryGetDatabaseNames(
69 WebKit::WebIDBCallbacks* callbacks, 69 WebKit::WebIDBCallbacks* callbacks,
70 const string16& origin, 70 const string16& origin,
71 WebKit::WebFrame* web_frame); 71 WebKit::WebFrame* web_frame);
72 72
73 void RequestIDBFactoryOpen( 73 void RequestIDBFactoryOpen(
74 const string16& name, 74 const string16& name,
75 int64 version, 75 int64 version,
76 WebKit::WebIDBCallbacks* callbacks, 76 WebKit::WebIDBCallbacks* callbacks,
77 WebKit::WebIDBDatabaseCallbacks* database_callbacks,
77 const string16& origin, 78 const string16& origin,
78 WebKit::WebFrame* web_frame); 79 WebKit::WebFrame* web_frame);
79 80
80 void RequestIDBFactoryDeleteDatabase( 81 void RequestIDBFactoryDeleteDatabase(
81 const string16& name, 82 const string16& name,
82 WebKit::WebIDBCallbacks* callbacks, 83 WebKit::WebIDBCallbacks* callbacks,
83 const string16& origin, 84 const string16& origin,
84 WebKit::WebFrame* web_frame); 85 WebKit::WebFrame* web_frame);
85 86
86 void RequestIDBCursorAdvance( 87 void RequestIDBCursorAdvance(
(...skipping 18 matching lines...) Expand all
105 int32 idb_cursor_id); 106 int32 idb_cursor_id);
106 107
107 void RequestIDBCursorDelete( 108 void RequestIDBCursorDelete(
108 WebKit::WebIDBCallbacks* callbacks_ptr, 109 WebKit::WebIDBCallbacks* callbacks_ptr,
109 int32 idb_cursor_id, 110 int32 idb_cursor_id,
110 WebKit::WebExceptionCode* ec); 111 WebKit::WebExceptionCode* ec);
111 112
112 void RequestIDBDatabaseClose( 113 void RequestIDBDatabaseClose(
113 int32 idb_database_id); 114 int32 idb_database_id);
114 115
115 void RequestIDBDatabaseOpen(
116 WebKit::WebIDBDatabaseCallbacks* callbacks_ptr,
117 int32 idb_database_id);
118
119 void RequestIDBDatabaseSetVersion( 116 void RequestIDBDatabaseSetVersion(
120 const string16& version, 117 const string16& version,
121 WebKit::WebIDBCallbacks* callbacks, 118 WebKit::WebIDBCallbacks* callbacks,
122 int32 idb_database_id, 119 int32 idb_database_id,
123 WebKit::WebExceptionCode* ec); 120 WebKit::WebExceptionCode* ec);
124 121
125 void RequestIDBIndexOpenObjectCursor( 122 void RequestIDBIndexOpenObjectCursor(
126 const WebKit::WebIDBKeyRange& idb_key_range, 123 const WebKit::WebIDBKeyRange& idb_key_range,
127 unsigned short direction, 124 unsigned short direction,
128 WebKit::WebIDBCallbacks* callbacks, 125 WebKit::WebIDBCallbacks* callbacks,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 279
283 // Map from cursor id to RendererWebIDBCursorImpl. 280 // Map from cursor id to RendererWebIDBCursorImpl.
284 std::map<int32, RendererWebIDBCursorImpl*> cursors_; 281 std::map<int32, RendererWebIDBCursorImpl*> cursors_;
285 282
286 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; 283 std::map<int32, RendererWebIDBDatabaseImpl*> databases_;
287 284
288 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 285 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
289 }; 286 };
290 287
291 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 288 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698