OLD | NEW |
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 Loading... |
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 |
OLD | NEW |