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

Unified Diff: content/child/indexed_db/indexed_db_key_builders.cc

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/child/indexed_db/indexed_db_key_builders.cc
diff --git a/content/child/indexed_db/indexed_db_key_builders.cc b/content/child/indexed_db/indexed_db_key_builders.cc
index d2c2773d614007d162844f4f2032e3e923e1be93..162546c5c761993345cff622d197cbd5f8681c6d 100644
--- a/content/child/indexed_db/indexed_db_key_builders.cc
+++ b/content/child/indexed_db/indexed_db_key_builders.cc
@@ -7,17 +7,17 @@
#include "base/logging.h"
#include "third_party/WebKit/public/platform/WebVector.h"
-using WebKit::WebIDBKey;
-using WebKit::WebIDBKeyRange;
-using WebKit::WebIDBKeyTypeArray;
-using WebKit::WebIDBKeyTypeDate;
-using WebKit::WebIDBKeyTypeInvalid;
-using WebKit::WebIDBKeyTypeMin;
-using WebKit::WebIDBKeyTypeNull;
-using WebKit::WebIDBKeyTypeNumber;
-using WebKit::WebIDBKeyTypeString;
-using WebKit::WebVector;
-using WebKit::WebString;
+using blink::WebIDBKey;
+using blink::WebIDBKeyRange;
+using blink::WebIDBKeyTypeArray;
+using blink::WebIDBKeyTypeDate;
+using blink::WebIDBKeyTypeInvalid;
+using blink::WebIDBKeyTypeMin;
+using blink::WebIDBKeyTypeNull;
+using blink::WebIDBKeyTypeNumber;
+using blink::WebIDBKeyTypeString;
+using blink::WebVector;
+using blink::WebString;
static content::IndexedDBKey::KeyArray CopyKeyArray(const WebIDBKey& other) {
content::IndexedDBKey::KeyArray result;
@@ -40,7 +40,7 @@ static std::vector<string16> CopyArray(
namespace content {
-IndexedDBKey IndexedDBKeyBuilder::Build(const WebKit::WebIDBKey& key) {
+IndexedDBKey IndexedDBKeyBuilder::Build(const blink::WebIDBKey& key) {
switch (key.keyType()) {
case WebIDBKeyTypeArray:
return IndexedDBKey(CopyKeyArray(key));
@@ -66,7 +66,7 @@ WebIDBKey WebIDBKeyBuilder::Build(const IndexedDBKey& key) {
switch (key.type()) {
case WebIDBKeyTypeArray: {
const IndexedDBKey::KeyArray& array = key.array();
- WebKit::WebVector<WebIDBKey> web_array(array.size());
+ blink::WebVector<WebIDBKey> web_array(array.size());
for (size_t i = 0; i < array.size(); ++i) {
web_array[i] = Build(array[i]);
}
@@ -101,31 +101,31 @@ IndexedDBKeyRange IndexedDBKeyRangeBuilder::Build(
}
IndexedDBKeyPath IndexedDBKeyPathBuilder::Build(
- const WebKit::WebIDBKeyPath& key_path) {
+ const blink::WebIDBKeyPath& key_path) {
switch (key_path.keyPathType()) {
- case WebKit::WebIDBKeyPathTypeString:
+ case blink::WebIDBKeyPathTypeString:
return IndexedDBKeyPath(key_path.string());
- case WebKit::WebIDBKeyPathTypeArray:
+ case blink::WebIDBKeyPathTypeArray:
return IndexedDBKeyPath(CopyArray(key_path.array()));
- case WebKit::WebIDBKeyPathTypeNull:
+ case blink::WebIDBKeyPathTypeNull:
return IndexedDBKeyPath();
}
NOTREACHED();
return IndexedDBKeyPath();
}
-WebKit::WebIDBKeyPath WebIDBKeyPathBuilder::Build(
+blink::WebIDBKeyPath WebIDBKeyPathBuilder::Build(
const IndexedDBKeyPath& key_path) {
switch (key_path.type()) {
- case WebKit::WebIDBKeyPathTypeString:
- return WebKit::WebIDBKeyPath::create(WebString(key_path.string()));
- case WebKit::WebIDBKeyPathTypeArray:
- return WebKit::WebIDBKeyPath::create(CopyArray(key_path.array()));
- case WebKit::WebIDBKeyPathTypeNull:
- return WebKit::WebIDBKeyPath::createNull();
+ case blink::WebIDBKeyPathTypeString:
+ return blink::WebIDBKeyPath::create(WebString(key_path.string()));
+ case blink::WebIDBKeyPathTypeArray:
+ return blink::WebIDBKeyPath::create(CopyArray(key_path.array()));
+ case blink::WebIDBKeyPathTypeNull:
+ return blink::WebIDBKeyPath::createNull();
}
NOTREACHED();
- return WebKit::WebIDBKeyPath::createNull();
+ return blink::WebIDBKeyPath::createNull();
}
} // namespace content
« no previous file with comments | « content/child/indexed_db/indexed_db_key_builders.h ('k') | content/child/indexed_db/proxy_webidbcursor_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698