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

Side by Side Diff: content/browser/indexed_db/indexed_db_factory.cc

Issue 18224002: IndexedDB: Eliminate IndexedDBDatabaseCallbacksWrapper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include fix for win 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/browser/indexed_db/indexed_db_factory.h" 5 #include "content/browser/indexed_db/indexed_db_factory.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/browser/indexed_db/indexed_db_backing_store.h" 9 #include "content/browser/indexed_db/indexed_db_backing_store.h"
10 #include "content/browser/indexed_db/indexed_db_database.h" 10 #include "content/browser/indexed_db/indexed_db_database.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 } 151 }
152 152
153 return 0; 153 return 0;
154 } 154 }
155 155
156 void IndexedDBFactory::Open( 156 void IndexedDBFactory::Open(
157 const string16& name, 157 const string16& name,
158 int64 version, 158 int64 version,
159 int64 transaction_id, 159 int64 transaction_id,
160 scoped_refptr<IndexedDBCallbacksWrapper> callbacks, 160 scoped_refptr<IndexedDBCallbacksWrapper> callbacks,
161 scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks, 161 scoped_refptr<IndexedDBDatabaseCallbacks> database_callbacks,
162 const string16& database_identifier, 162 const string16& database_identifier,
163 const base::FilePath& data_directory) { 163 const base::FilePath& data_directory) {
164 IDB_TRACE("IndexedDBFactory::Open"); 164 IDB_TRACE("IndexedDBFactory::Open");
165 const string16 unique_identifier = 165 const string16 unique_identifier =
166 ComputeUniqueIdentifier(name, database_identifier); 166 ComputeUniqueIdentifier(name, database_identifier);
167 167
168 scoped_refptr<IndexedDBDatabase> database_backend; 168 scoped_refptr<IndexedDBDatabase> database_backend;
169 IndexedDBDatabaseMap::iterator it = 169 IndexedDBDatabaseMap::iterator it =
170 database_backend_map_.find(unique_identifier); 170 database_backend_map_.find(unique_identifier);
171 WebKit::WebIDBCallbacks::DataLoss data_loss = 171 WebKit::WebIDBCallbacks::DataLoss data_loss =
(...skipping 22 matching lines...) Expand all
194 database_backend_map_[unique_identifier] = database_backend.get(); 194 database_backend_map_[unique_identifier] = database_backend.get();
195 } else { 195 } else {
196 database_backend = it->second; 196 database_backend = it->second;
197 } 197 }
198 198
199 database_backend->OpenConnection( 199 database_backend->OpenConnection(
200 callbacks, database_callbacks, transaction_id, version, data_loss); 200 callbacks, database_callbacks, transaction_id, version, data_loss);
201 } 201 }
202 202
203 } // namespace content 203 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory.h ('k') | content/browser/indexed_db/indexed_db_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698