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

Side by Side Diff: Source/web/WebIDBMetadata.cpp

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/WebIDBKeyRange.cpp ('k') | Source/web/WebImageCache.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "public/platform/WebIDBMetadata.h" 27 #include "public/platform/WebIDBMetadata.h"
28 28
29 #include "modules/indexeddb/IDBMetadata.h" 29 #include "modules/indexeddb/IDBMetadata.h"
30 #include "public/platform/WebIDBKeyPath.h" 30 #include "public/platform/WebIDBKeyPath.h"
31 #include "public/platform/WebString.h" 31 #include "public/platform/WebString.h"
32 #include "public/platform/WebVector.h" 32 #include "public/platform/WebVector.h"
33 33
34 using namespace WebCore; 34 using namespace blink;
35 35
36 namespace blink { 36 namespace blink {
37 37
38 WebIDBMetadata::WebIDBMetadata(const WebCore::IDBDatabaseMetadata& metadata) 38 WebIDBMetadata::WebIDBMetadata(const blink::IDBDatabaseMetadata& metadata)
39 { 39 {
40 name = metadata.name; 40 name = metadata.name;
41 version = metadata.version; 41 version = metadata.version;
42 intVersion = metadata.intVersion; 42 intVersion = metadata.intVersion;
43 objectStores = WebVector<ObjectStore>(static_cast<size_t>(metadata.objectSto res.size())); 43 objectStores = WebVector<ObjectStore>(static_cast<size_t>(metadata.objectSto res.size()));
44 maxObjectStoreId = metadata.maxObjectStoreId; 44 maxObjectStoreId = metadata.maxObjectStoreId;
45 45
46 size_t i = 0; 46 size_t i = 0;
47 for (IDBDatabaseMetadata::ObjectStoreMap::const_iterator storeIterator = met adata.objectStores.begin(); storeIterator != metadata.objectStores.end(); ++stor eIterator) { 47 for (IDBDatabaseMetadata::ObjectStoreMap::const_iterator storeIterator = met adata.objectStores.begin(); storeIterator != metadata.objectStores.end(); ++stor eIterator) {
48 const IDBObjectStoreMetadata& objectStore = storeIterator->value; 48 const IDBObjectStoreMetadata& objectStore = storeIterator->value;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const Index webIndex = webObjectStore.indexes[j]; 80 const Index webIndex = webObjectStore.indexes[j];
81 IDBIndexMetadata index(webIndex.name, webIndex.id, webIndex.keyPath, webIndex.unique, webIndex.multiEntry); 81 IDBIndexMetadata index(webIndex.name, webIndex.id, webIndex.keyPath, webIndex.unique, webIndex.multiEntry);
82 objectStore.indexes.set(index.id, index); 82 objectStore.indexes.set(index.id, index);
83 } 83 }
84 db.objectStores.set(objectStore.id, objectStore); 84 db.objectStores.set(objectStore.id, objectStore);
85 } 85 }
86 return db; 86 return db;
87 } 87 }
88 88
89 } // namespace blink 89 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebIDBKeyRange.cpp ('k') | Source/web/WebImageCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698