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

Unified Diff: content/browser/indexed_db/indexed_db_dispatcher_host.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
Index: content/browser/indexed_db/indexed_db_dispatcher_host.cc
diff --git a/content/browser/indexed_db/indexed_db_dispatcher_host.cc b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
index 996f653f597911f49d0ad189173492a3546e762f..6351355293f8b90de0760abc19ee8bc52bbde7e5 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.cc
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
@@ -27,13 +27,11 @@
#include "content/public/common/result_codes.h"
#include "googleurl/src/gurl.h"
#include "third_party/WebKit/public/platform/WebIDBDatabase.h"
-#include "third_party/WebKit/public/platform/WebIDBDatabaseError.h"
#include "third_party/WebKit/public/platform/WebIDBDatabaseException.h"
#include "webkit/browser/database/database_util.h"
#include "webkit/common/database/database_identifier.h"
using webkit_database::DatabaseUtil;
-using WebKit::WebIDBDatabaseError;
using WebKit::WebIDBKey;
namespace content {
@@ -221,7 +219,7 @@ void IndexedDBDispatcherHost::OnIDBFactoryGetDatabaseNames(
Context()->GetIDBFactory()->getDatabaseNames(
new IndexedDBCallbacks<std::vector<string16> >(
this, params.ipc_thread_id, params.ipc_callbacks_id),
- WebKit::WebString::fromUTF8(params.database_identifier),
+ base::UTF8ToUTF16(params.database_identifier),
indexed_db_path.AsUTF16Unsafe());
}
@@ -249,7 +247,7 @@ void IndexedDBDispatcherHost::OnIDBFactoryOpen(
origin_url),
new IndexedDBDatabaseCallbacks(
this, params.ipc_thread_id, params.ipc_database_callbacks_id),
- WebKit::WebString::fromUTF8(params.database_identifier),
+ base::UTF8ToUTF16(params.database_identifier),
indexed_db_path.AsUTF16Unsafe());
}
@@ -262,7 +260,7 @@ void IndexedDBDispatcherHost::OnIDBFactoryDeleteDatabase(
->deleteDatabase(params.name,
new IndexedDBCallbacks<std::vector<char> >(
this, params.ipc_thread_id, params.ipc_callbacks_id),
- WebKit::WebString::fromUTF8(params.database_identifier),
+ base::UTF8ToUTF16(params.database_identifier),
indexed_db_path.AsUTF16Unsafe());
}
@@ -350,7 +348,7 @@ void IndexedDBDispatcherHost::DatabaseDispatcherHost::CloseAll() {
if (database) {
database->abort(
transaction_id,
- WebIDBDatabaseError(WebKit::WebIDBDatabaseExceptionUnknownError));
+ IndexedDBDatabaseError(WebKit::WebIDBDatabaseExceptionUnknownError));
}
}
DCHECK(transaction_database_map_.empty());
@@ -424,7 +422,7 @@ void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnCreateObjectStore(
database_url_map_[params.ipc_database_id])) {
database->abort(
host_transaction_id,
- WebIDBDatabaseError(WebKit::WebIDBDatabaseExceptionQuotaError));
+ IndexedDBDatabaseError(WebKit::WebIDBDatabaseExceptionQuotaError));
}
}
@@ -551,7 +549,7 @@ void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnSetIndexKeys(
if (params.index_ids.size() != params.index_keys.size()) {
database->abort(
host_transaction_id,
- WebIDBDatabaseError(
+ IndexedDBDatabaseError(
WebKit::WebIDBDatabaseExceptionUnknownError,
"Malformed IPC message: index_ids.size() != index_keys.size()"));
return;
@@ -691,7 +689,7 @@ void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnCommit(
transaction_url_map_[host_transaction_id], transaction_size)) {
database->abort(
host_transaction_id,
- WebIDBDatabaseError(WebKit::WebIDBDatabaseExceptionQuotaError));
+ IndexedDBDatabaseError(WebKit::WebIDBDatabaseExceptionQuotaError));
return;
}
@@ -719,7 +717,7 @@ void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnCreateIndex(
database_url_map_[params.ipc_database_id])) {
database->abort(
host_transaction_id,
- WebIDBDatabaseError(WebKit::WebIDBDatabaseExceptionQuotaError));
+ IndexedDBDatabaseError(WebKit::WebIDBDatabaseExceptionQuotaError));
}
}
« no previous file with comments | « content/browser/indexed_db/indexed_db_database_unittest.cc ('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