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

Unified Diff: content/browser/indexed_db/webidbfactory_impl.cc

Issue 17915004: IndexedDB: Remove uses of WebKit API types from back-end code (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/indexed_db/webidbfactory_impl.h ('k') | content/child/indexed_db/indexed_db_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/webidbfactory_impl.cc
diff --git a/content/browser/indexed_db/webidbfactory_impl.cc b/content/browser/indexed_db/webidbfactory_impl.cc
index faa1d57c0f2ac71622bf0ef8ba17db3b3ab61156..e86dc118595168c7a91136b40e4eccb4ce7c86ca 100644
--- a/content/browser/indexed_db/webidbfactory_impl.cc
+++ b/content/browser/indexed_db/webidbfactory_impl.cc
@@ -7,11 +7,9 @@
#include "base/files/file_path.h"
#include "base/memory/scoped_ptr.h"
#include "content/browser/indexed_db/indexed_db_callbacks_wrapper.h"
+#include "content/browser/indexed_db/indexed_db_database_error.h"
#include "content/browser/indexed_db/indexed_db_factory.h"
#include "content/browser/indexed_db/indexed_db_factory.h"
-#include "third_party/WebKit/public/platform/WebIDBDatabaseError.h"
-
-using WebKit::WebString;
namespace content {
@@ -21,21 +19,21 @@ WebIDBFactoryImpl::WebIDBFactoryImpl()
WebIDBFactoryImpl::~WebIDBFactoryImpl() {}
void WebIDBFactoryImpl::getDatabaseNames(IndexedDBCallbacksBase* callbacks,
- const WebString& database_identifier,
- const WebString& data_dir) {
+ const string16& database_identifier,
+ const string16& data_dir) {
idb_factory_backend_->GetDatabaseNames(
IndexedDBCallbacksWrapper::Create(callbacks),
database_identifier,
base::FilePath::FromUTF16Unsafe(data_dir));
}
-void WebIDBFactoryImpl::open(const WebString& name,
+void WebIDBFactoryImpl::open(const string16& name,
long long version,
long long transaction_id,
IndexedDBCallbacksBase* callbacks,
IndexedDBDatabaseCallbacks* database_callbacks,
- const WebString& database_identifier,
- const WebString& data_dir) {
+ const string16& database_identifier,
+ const string16& data_dir) {
scoped_refptr<IndexedDBCallbacksWrapper> callbacks_proxy =
IndexedDBCallbacksWrapper::Create(callbacks);
scoped_refptr<IndexedDBDatabaseCallbacksWrapper> database_callbacks_proxy =
@@ -51,10 +49,10 @@ void WebIDBFactoryImpl::open(const WebString& name,
base::FilePath::FromUTF16Unsafe(data_dir));
}
-void WebIDBFactoryImpl::deleteDatabase(const WebString& name,
+void WebIDBFactoryImpl::deleteDatabase(const string16& name,
IndexedDBCallbacksBase* callbacks,
- const WebString& database_identifier,
- const WebString& data_dir) {
+ const string16& database_identifier,
+ const string16& data_dir) {
idb_factory_backend_->DeleteDatabase(
name,
IndexedDBCallbacksWrapper::Create(callbacks),
« no previous file with comments | « content/browser/indexed_db/webidbfactory_impl.h ('k') | content/child/indexed_db/indexed_db_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698