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

Unified Diff: content/browser/in_process_webkit/indexed_db_callbacks.cc

Issue 10272018: Move IndexedDBKey, IndexedDBKeyRange into content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use "using content::*" aliasing for IDB/SSV types Created 8 years, 8 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/in_process_webkit/indexed_db_callbacks.cc
diff --git a/content/browser/in_process_webkit/indexed_db_callbacks.cc b/content/browser/in_process_webkit/indexed_db_callbacks.cc
index ea1ee73901b429cf02d43e3f4149cba35e016aca..79343bffc1a6c7bbe1d620a492d787ff2adec4be 100644
--- a/content/browser/in_process_webkit/indexed_db_callbacks.cc
+++ b/content/browser/in_process_webkit/indexed_db_callbacks.cc
@@ -7,6 +7,9 @@
#include "content/common/indexed_db/indexed_db_messages.h"
#include "webkit/quota/quota_manager.h"
+using content::IndexedDBKey;
+using content::SerializedScriptValue;
+
IndexedDBCallbacksBase::IndexedDBCallbacksBase(
IndexedDBDispatcherHost* dispatcher_host,
int32 thread_id,
@@ -37,7 +40,7 @@ void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccess(
params.cursor_id = object_id;
params.key = IndexedDBKey(idb_object->key());
params.primary_key = IndexedDBKey(idb_object->primaryKey());
- params.serialized_value = content::SerializedScriptValue(idb_object->value());
+ params.serialized_value = SerializedScriptValue(idb_object->value());
dispatcher_host()->Send(new IndexedDBMsg_CallbacksSuccessIDBCursor(params));
}
@@ -45,7 +48,7 @@ void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccess(
const WebKit::WebSerializedScriptValue& value) {
dispatcher_host()->Send(
new IndexedDBMsg_CallbacksSuccessSerializedScriptValue(
- thread_id(), response_id(), content::SerializedScriptValue(value)));
+ thread_id(), response_id(), SerializedScriptValue(value)));
}
void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccessWithContinuation() {
@@ -62,7 +65,7 @@ void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccessWithContinuation() {
params.cursor_id = cursor_id_;
params.key = IndexedDBKey(idb_cursor->key());
params.primary_key = IndexedDBKey(idb_cursor->primaryKey());
- params.serialized_value = content::SerializedScriptValue(idb_cursor->value());
+ params.serialized_value = SerializedScriptValue(idb_cursor->value());
dispatcher_host()->Send(
new IndexedDBMsg_CallbacksSuccessCursorContinue(params));
@@ -76,12 +79,12 @@ void IndexedDBCallbacks<WebKit::WebIDBCursor>::onSuccessWithPrefetch(
std::vector<IndexedDBKey> msgKeys;
std::vector<IndexedDBKey> msgPrimaryKeys;
- std::vector<content::SerializedScriptValue> msgValues;
+ std::vector<SerializedScriptValue> msgValues;
for (size_t i = 0; i < keys.size(); ++i) {
msgKeys.push_back(IndexedDBKey(keys[i]));
msgPrimaryKeys.push_back(IndexedDBKey(primaryKeys[i]));
- msgValues.push_back(content::SerializedScriptValue(values[i]));
+ msgValues.push_back(SerializedScriptValue(values[i]));
}
IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params params;
@@ -118,5 +121,5 @@ void IndexedDBCallbacks<WebKit::WebSerializedScriptValue>::onSuccess(
const WebKit::WebSerializedScriptValue& value) {
dispatcher_host()->Send(
new IndexedDBMsg_CallbacksSuccessSerializedScriptValue(
- thread_id(), response_id(), content::SerializedScriptValue(value)));
+ thread_id(), response_id(), SerializedScriptValue(value)));
}

Powered by Google App Engine
This is Rietveld 408576698