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

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

Issue 16581002: IndexedDB: Eliminate interfaces for IndexedDB{Factory,Database,Cursor} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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
« no previous file with comments | « content/browser/indexed_db/indexed_db_transaction.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/webidbfactory_impl.h" 5 #include "content/browser/indexed_db/webidbfactory_impl.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h" 8 #include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h"
9 #include "content/browser/indexed_db/indexed_db_factory.h" 9 #include "content/browser/indexed_db/indexed_db_factory.h"
10 #include "content/browser/indexed_db/indexed_db_factory_impl.h" 10 #include "content/browser/indexed_db/indexed_db_factory.h"
11 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h" 11 #include "third_party/WebKit/public/platform/WebIDBDatabaseCallbacks.h"
12 #include "third_party/WebKit/public/platform/WebIDBDatabaseError.h" 12 #include "third_party/WebKit/public/platform/WebIDBDatabaseError.h"
13 #include "webkit/base/file_path_string_conversions.h" 13 #include "webkit/base/file_path_string_conversions.h"
14 14
15 using WebKit::WebIDBCallbacks; 15 using WebKit::WebIDBCallbacks;
16 using WebKit::WebIDBDatabaseCallbacks; 16 using WebKit::WebIDBDatabaseCallbacks;
17 using WebKit::WebIDBFactory; 17 using WebKit::WebIDBFactory;
18 using WebKit::WebString; 18 using WebKit::WebString;
19 19
20 namespace content { 20 namespace content {
21 21
22 WebIDBFactoryImpl::WebIDBFactoryImpl() 22 WebIDBFactoryImpl::WebIDBFactoryImpl()
23 : idb_factory_backend_(IndexedDBFactoryImpl::Create()) {} 23 : idb_factory_backend_(IndexedDBFactory::Create()) {}
24 24
25 WebIDBFactoryImpl::~WebIDBFactoryImpl() {} 25 WebIDBFactoryImpl::~WebIDBFactoryImpl() {}
26 26
27 void WebIDBFactoryImpl::getDatabaseNames(WebIDBCallbacks* callbacks, 27 void WebIDBFactoryImpl::getDatabaseNames(WebIDBCallbacks* callbacks,
28 const WebString& database_identifier, 28 const WebString& database_identifier,
29 const WebString& data_dir) { 29 const WebString& data_dir) {
30 idb_factory_backend_->GetDatabaseNames( 30 idb_factory_backend_->GetDatabaseNames(
31 IndexedDBCallbacksWrapper::Create(callbacks), 31 IndexedDBCallbacksWrapper::Create(callbacks),
32 database_identifier, 32 database_identifier,
33 webkit_base::WebStringToFilePath(data_dir)); 33 webkit_base::WebStringToFilePath(data_dir));
(...skipping 26 matching lines...) Expand all
60 const WebString& database_identifier, 60 const WebString& database_identifier,
61 const WebString& data_dir) { 61 const WebString& data_dir) {
62 idb_factory_backend_->DeleteDatabase( 62 idb_factory_backend_->DeleteDatabase(
63 name, 63 name,
64 IndexedDBCallbacksWrapper::Create(callbacks), 64 IndexedDBCallbacksWrapper::Create(callbacks),
65 database_identifier, 65 database_identifier,
66 webkit_base::WebStringToFilePath(data_dir)); 66 webkit_base::WebStringToFilePath(data_dir));
67 } 67 }
68 68
69 } // namespace WebKit 69 } // namespace WebKit
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_transaction.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698