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

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: Backwards compatible with current WK API 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 virtual void OnWorkerRunLoopStopped() OVERRIDE; 63 virtual void OnWorkerRunLoopStopped() OVERRIDE;
64 64
65 void OnMessageReceived(const IPC::Message& msg); 65 void OnMessageReceived(const IPC::Message& msg);
66 static bool Send(IPC::Message* msg); 66 static bool Send(IPC::Message* msg);
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 // TODO(jsbell): Remove this overload once WK90411 rolls.
74 void RequestIDBFactoryOpen(
75 const string16& name,
76 int64 version,
77 WebKit::WebIDBCallbacks* callbacks,
78 const string16& origin,
79 WebKit::WebFrame* web_frame);
80
73 void RequestIDBFactoryOpen( 81 void RequestIDBFactoryOpen(
74 const string16& name, 82 const string16& name,
75 int64 version, 83 int64 version,
76 WebKit::WebIDBCallbacks* callbacks, 84 WebKit::WebIDBCallbacks* callbacks,
85 WebKit::WebIDBDatabaseCallbacks* database_callbacks,
77 const string16& origin, 86 const string16& origin,
78 WebKit::WebFrame* web_frame); 87 WebKit::WebFrame* web_frame);
79 88
80 void RequestIDBFactoryDeleteDatabase( 89 void RequestIDBFactoryDeleteDatabase(
81 const string16& name, 90 const string16& name,
82 WebKit::WebIDBCallbacks* callbacks, 91 WebKit::WebIDBCallbacks* callbacks,
83 const string16& origin, 92 const string16& origin,
84 WebKit::WebFrame* web_frame); 93 WebKit::WebFrame* web_frame);
85 94
86 void RequestIDBCursorAdvance( 95 void RequestIDBCursorAdvance(
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 291
283 // Map from cursor id to RendererWebIDBCursorImpl. 292 // Map from cursor id to RendererWebIDBCursorImpl.
284 std::map<int32, RendererWebIDBCursorImpl*> cursors_; 293 std::map<int32, RendererWebIDBCursorImpl*> cursors_;
285 294
286 std::map<int32, RendererWebIDBDatabaseImpl*> databases_; 295 std::map<int32, RendererWebIDBDatabaseImpl*> databases_;
287 296
288 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); 297 DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher);
289 }; 298 };
290 299
291 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_ 300 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698