| 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.h" | 10 #include "content/browser/indexed_db/indexed_db_factory.h" |
| 11 #include "third_party/WebKit/public/platform/WebIDBDatabaseError.h" | 11 #include "third_party/WebKit/public/platform/WebIDBDatabaseError.h" |
| 12 #include "webkit/base/file_path_string_conversions.h" | 12 #include "webkit/common/base/file_path_string_conversions.h" |
| 13 | 13 |
| 14 using WebKit::WebString; | 14 using WebKit::WebString; |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 WebIDBFactoryImpl::WebIDBFactoryImpl() | 18 WebIDBFactoryImpl::WebIDBFactoryImpl() |
| 19 : idb_factory_backend_(IndexedDBFactory::Create()) {} | 19 : idb_factory_backend_(IndexedDBFactory::Create()) {} |
| 20 | 20 |
| 21 WebIDBFactoryImpl::~WebIDBFactoryImpl() {} | 21 WebIDBFactoryImpl::~WebIDBFactoryImpl() {} |
| 22 | 22 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 const WebString& database_identifier, | 56 const WebString& database_identifier, |
| 57 const WebString& data_dir) { | 57 const WebString& data_dir) { |
| 58 idb_factory_backend_->DeleteDatabase( | 58 idb_factory_backend_->DeleteDatabase( |
| 59 name, | 59 name, |
| 60 IndexedDBCallbacksWrapper::Create(callbacks), | 60 IndexedDBCallbacksWrapper::Create(callbacks), |
| 61 database_identifier, | 61 database_identifier, |
| 62 webkit_base::WebStringToFilePath(data_dir)); | 62 webkit_base::WebStringToFilePath(data_dir)); |
| 63 } | 63 } |
| 64 | 64 |
| 65 } // namespace WebKit | 65 } // namespace WebKit |
| OLD | NEW |