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

Side by Side Diff: content/common/indexed_db/proxy_webidbindex_impl.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, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/indexed_db/proxy_webidbindex_impl.h" 5 #include "content/common/indexed_db/proxy_webidbindex_impl.h"
6 6
7 #include "content/common/indexed_db/indexed_db_dispatcher.h" 7 #include "content/common/indexed_db/indexed_db_dispatcher.h"
8 #include "content/common/indexed_db/indexed_db_messages.h" 8 #include "content/common/indexed_db/indexed_db_messages.h"
9 #include "content/common/indexed_db/proxy_webidbtransaction_impl.h" 9 #include "content/common/indexed_db/proxy_webidbtransaction_impl.h"
10 #include "content/common/child_thread.h" 10 #include "content/common/child_thread.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h"
14 14
15 using content::IndexedDBKeyPath;
16 using content::IndexedDBKeyRange;
15 using WebKit::WebExceptionCode; 17 using WebKit::WebExceptionCode;
16 using WebKit::WebDOMStringList; 18 using WebKit::WebDOMStringList;
17 using WebKit::WebIDBKeyPath; 19 using WebKit::WebIDBKeyPath;
18 using WebKit::WebString; 20 using WebKit::WebString;
19 using WebKit::WebVector; 21 using WebKit::WebVector;
20 22
21 RendererWebIDBIndexImpl::RendererWebIDBIndexImpl(int32 idb_index_id) 23 RendererWebIDBIndexImpl::RendererWebIDBIndexImpl(int32 idb_index_id)
22 : idb_index_id_(idb_index_id) { 24 : idb_index_id_(idb_index_id) {
23 } 25 }
24 26
(...skipping 14 matching lines...) Expand all
39 } 41 }
40 42
41 WebString RendererWebIDBIndexImpl::storeName() const { 43 WebString RendererWebIDBIndexImpl::storeName() const {
42 string16 result; 44 string16 result;
43 IndexedDBDispatcher::Send( 45 IndexedDBDispatcher::Send(
44 new IndexedDBHostMsg_IndexStoreName(idb_index_id_, &result)); 46 new IndexedDBHostMsg_IndexStoreName(idb_index_id_, &result));
45 return result; 47 return result;
46 } 48 }
47 49
48 WebIDBKeyPath RendererWebIDBIndexImpl::keyPath() const { 50 WebIDBKeyPath RendererWebIDBIndexImpl::keyPath() const {
49 content::IndexedDBKeyPath result; 51 IndexedDBKeyPath result;
50 IndexedDBDispatcher::Send( 52 IndexedDBDispatcher::Send(
51 new IndexedDBHostMsg_IndexKeyPath(idb_index_id_, &result)); 53 new IndexedDBHostMsg_IndexKeyPath(idb_index_id_, &result));
52 return result; 54 return result;
53 } 55 }
54 56
55 bool RendererWebIDBIndexImpl::unique() const { 57 bool RendererWebIDBIndexImpl::unique() const {
56 bool result; 58 bool result;
57 IndexedDBDispatcher::Send( 59 IndexedDBDispatcher::Send(
58 new IndexedDBHostMsg_IndexUnique(idb_index_id_, &result)); 60 new IndexedDBHostMsg_IndexUnique(idb_index_id_, &result));
59 return result; 61 return result;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 104 }
103 105
104 void RendererWebIDBIndexImpl::getObject( 106 void RendererWebIDBIndexImpl::getObject(
105 const WebKit::WebIDBKeyRange& key_range, 107 const WebKit::WebIDBKeyRange& key_range,
106 WebKit::WebIDBCallbacks* callbacks, 108 WebKit::WebIDBCallbacks* callbacks,
107 const WebKit::WebIDBTransaction& transaction, 109 const WebKit::WebIDBTransaction& transaction,
108 WebExceptionCode& ec) { 110 WebExceptionCode& ec) {
109 IndexedDBDispatcher* dispatcher = 111 IndexedDBDispatcher* dispatcher =
110 IndexedDBDispatcher::ThreadSpecificInstance(); 112 IndexedDBDispatcher::ThreadSpecificInstance();
111 dispatcher->RequestIDBIndexGetObject( 113 dispatcher->RequestIDBIndexGetObject(
112 IndexedDBKeyRange(key_range), callbacks, idb_index_id_, transaction, &ec); 114 IndexedDBKeyRange(key_range), callbacks, idb_index_id_,
115 transaction, &ec);
113 } 116 }
114 117
115 void RendererWebIDBIndexImpl::getKey( 118 void RendererWebIDBIndexImpl::getKey(
116 const WebKit::WebIDBKeyRange& key_range, 119 const WebKit::WebIDBKeyRange& key_range,
117 WebKit::WebIDBCallbacks* callbacks, 120 WebKit::WebIDBCallbacks* callbacks,
118 const WebKit::WebIDBTransaction& transaction, 121 const WebKit::WebIDBTransaction& transaction,
119 WebExceptionCode& ec) { 122 WebExceptionCode& ec) {
120 IndexedDBDispatcher* dispatcher = 123 IndexedDBDispatcher* dispatcher =
121 IndexedDBDispatcher::ThreadSpecificInstance(); 124 IndexedDBDispatcher::ThreadSpecificInstance();
122 dispatcher->RequestIDBIndexGetKey( 125 dispatcher->RequestIDBIndexGetKey(
123 IndexedDBKeyRange(key_range), callbacks, idb_index_id_, transaction, &ec); 126 IndexedDBKeyRange(key_range), callbacks, idb_index_id_,
127 transaction, &ec);
124 } 128 }
OLDNEW
« no previous file with comments | « content/common/indexed_db/proxy_webidbcursor_impl.cc ('k') | content/common/indexed_db/proxy_webidbobjectstore_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698