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

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

Issue 10834350: Remove all the indexeddb-related utility process code (Closed) Base URL: http://git.chromium.org/chromium/src.git@opencursor-cleanup
Patch Set: Rebase, attempt to reland Created 8 years, 4 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
« no previous file with comments | « webkit/glue/idb_bindings.h ('k') | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "webkit/glue/idb_bindings.h"
6
7 #include "base/basictypes.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "base/utf_string_conversions.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize dScriptValue.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
14
15 namespace webkit_glue {
16
17 using WebKit::WebIDBKey;
18 using WebKit::WebIDBKeyPath;
19 using WebKit::WebSerializedScriptValue;
20 using WebKit::WebString;
21
22 void IDBKeysFromValuesAndKeyPath(
23 const std::vector<WebSerializedScriptValue>& serialized_script_values,
24 const WebIDBKeyPath& idb_key_path,
25 std::vector<WebIDBKey>* values) {
26 for (std::vector<WebSerializedScriptValue>::const_iterator i =
27 serialized_script_values.begin();
28 i != serialized_script_values.end(); ++i) {
29 values->push_back(
30 WebIDBKey::createFromValueAndKeyPath(*i, idb_key_path));
31 }
32 }
33
34 WebSerializedScriptValue InjectIDBKey(
35 const WebIDBKey& key,
36 const WebSerializedScriptValue& value,
37 const WebIDBKeyPath& idb_key_path) {
38 return WebIDBKey::injectIDBKeyIntoSerializedValue(
39 key, value, idb_key_path);
40 }
41
42 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/idb_bindings.h ('k') | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698