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

Side by Side Diff: webkit/glue/idb_bindings.h

Issue 10204003: Use WebIDBKeyPath type in WebKit API, implement IndexedDBKeyPath type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move IndexedDBKeyPath to content namespace, formatting nits. 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
« no previous file with comments | « content/utility/utility_thread_impl.cc ('k') | webkit/glue/idb_bindings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <vector> 5 #include <vector>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/string16.h"
9 #include "webkit/glue/webkit_glue_export.h" 8 #include "webkit/glue/webkit_glue_export.h"
10 9
11 namespace WebKit { 10 namespace WebKit {
12 class WebIDBKey; 11 class WebIDBKey;
12 class WebIDBKeyPath;
13 class WebSerializedScriptValue; 13 class WebSerializedScriptValue;
14 } 14 }
15 15
16 namespace webkit_glue { 16 namespace webkit_glue {
17 17
18 // Warning: this method holds a V8 lock, it should only be called within a 18 // Warning: this method holds a V8 lock, it should only be called within a
19 // sandbox. 19 // sandbox.
20 WEBKIT_GLUE_EXPORT bool IDBKeysFromValuesAndKeyPath( 20 WEBKIT_GLUE_EXPORT void IDBKeysFromValuesAndKeyPath(
21 const std::vector<WebKit::WebSerializedScriptValue>& 21 const std::vector<WebKit::WebSerializedScriptValue>&
22 serialized_script_values, 22 serialized_script_values,
23 const string16& idb_key_path, 23 const WebKit::WebIDBKeyPath& idb_key_path,
24 std::vector<WebKit::WebIDBKey>* values); 24 std::vector<WebKit::WebIDBKey>* values);
25 25
26 WEBKIT_GLUE_EXPORT WebKit::WebSerializedScriptValue InjectIDBKey( 26 WEBKIT_GLUE_EXPORT WebKit::WebSerializedScriptValue InjectIDBKey(
27 const WebKit::WebIDBKey& key, 27 const WebKit::WebIDBKey& key,
28 const WebKit::WebSerializedScriptValue& value, 28 const WebKit::WebSerializedScriptValue& value,
29 const string16& idb_key_path); 29 const WebKit::WebIDBKeyPath& idb_key_path);
30 30
31 } // namespace webkit_glue 31 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « content/utility/utility_thread_impl.cc ('k') | webkit/glue/idb_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698