[Mac] PepperFlash default on DEV channel.
[chromium-blink-merge.git] / webkit / glue / idb_bindings.h
blob5b9875783427d5b2c30aa68ddd493d5823b503b2
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
3 // found in the LICENSE file.
5 #include <vector>
7 #include "base/basictypes.h"
8 #include "webkit/glue/webkit_glue_export.h"
10 namespace WebKit {
11 class WebIDBKey;
12 class WebIDBKeyPath;
13 class WebSerializedScriptValue;
16 namespace webkit_glue {
18 // Warning: this method holds a V8 lock, it should only be called within a
19 // sandbox.
20 WEBKIT_GLUE_EXPORT void IDBKeysFromValuesAndKeyPath(
21 const std::vector<WebKit::WebSerializedScriptValue>&
22 serialized_script_values,
23 const WebKit::WebIDBKeyPath& idb_key_path,
24 std::vector<WebKit::WebIDBKey>* values);
26 WEBKIT_GLUE_EXPORT WebKit::WebSerializedScriptValue InjectIDBKey(
27 const WebKit::WebIDBKey& key,
28 const WebKit::WebSerializedScriptValue& value,
29 const WebKit::WebIDBKeyPath& idb_key_path);
31 } // namespace webkit_glue