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

Side by Side Diff: content/common/indexed_db/proxy_webidbdatabase_impl.cc

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 #include "content/common/indexed_db/proxy_webidbdatabase_impl.h" 5 #include "content/common/indexed_db/proxy_webidbdatabase_impl.h"
6 6
7 #include "content/common/child_thread.h" 7 #include "content/common/child_thread.h"
8 #include "content/common/indexed_db/indexed_db_messages.h" 8 #include "content/common/indexed_db/indexed_db_messages.h"
9 #include "content/common/indexed_db/indexed_db_dispatcher.h" 9 #include "content/common/indexed_db/indexed_db_dispatcher.h"
10 #include "content/common/indexed_db/proxy_webidbobjectstore_impl.h" 10 #include "content/common/indexed_db/proxy_webidbobjectstore_impl.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 return NULL; 142 return NULL;
143 return new RendererWebIDBTransactionImpl(transaction_id); 143 return new RendererWebIDBTransactionImpl(transaction_id);
144 } 144 }
145 145
146 void RendererWebIDBDatabaseImpl::close() { 146 void RendererWebIDBDatabaseImpl::close() {
147 IndexedDBDispatcher* dispatcher = 147 IndexedDBDispatcher* dispatcher =
148 IndexedDBDispatcher::ThreadSpecificInstance(); 148 IndexedDBDispatcher::ThreadSpecificInstance();
149 dispatcher->RequestIDBDatabaseClose(idb_database_id_); 149 dispatcher->RequestIDBDatabaseClose(idb_database_id_);
150 } 150 }
151 151
152 // TODO(jsbell): Remove once WK90411 has rolled.
152 void RendererWebIDBDatabaseImpl::open(WebIDBDatabaseCallbacks* callbacks) { 153 void RendererWebIDBDatabaseImpl::open(WebIDBDatabaseCallbacks* callbacks) {
153 IndexedDBDispatcher* dispatcher = 154 IndexedDBDispatcher* dispatcher =
154 IndexedDBDispatcher::ThreadSpecificInstance(); 155 IndexedDBDispatcher::ThreadSpecificInstance();
155 DCHECK(dispatcher); 156 DCHECK(dispatcher);
156 dispatcher->RequestIDBDatabaseOpen(callbacks, idb_database_id_); 157 dispatcher->RequestIDBDatabaseOpen(callbacks, idb_database_id_);
157 } 158 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698