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

Side by Side Diff: content/child/indexed_db/indexed_db_key_builders.h

Issue 19752007: Use builders to convert between WebKit and content IDB types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ios Created 7 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 #ifndef CONTENT_CHILD_INDEXED_DB_INDEXED_DB_KEY_BUILDERS_H_
6 #define CONTENT_CHILD_INDEXED_DB_INDEXED_DB_KEY_BUILDERS_H_
7
8 #include "content/common/content_export.h"
9 #include "content/common/indexed_db/indexed_db_key.h"
10 #include "content/common/indexed_db/indexed_db_key_path.h"
11 #include "content/common/indexed_db/indexed_db_key_range.h"
12 #include "third_party/WebKit/public/platform/WebIDBKey.h"
13 #include "third_party/WebKit/public/platform/WebIDBKeyPath.h"
14 #include "third_party/WebKit/public/platform/WebIDBKeyRange.h"
15
16 namespace WebKit {
17 class WebIDBKey;
18 }
19
20 namespace content {
21
22 class CONTENT_EXPORT IndexedDBKeyBuilder {
23 public:
24 static IndexedDBKey Build(const WebKit::WebIDBKey& key);
25 static WebKit::WebIDBKey Build(const content::IndexedDBKey& key);
darin (slow to review) 2013/07/19 04:12:08 maybe this second one should be on a class named W
26 };
27
28 class CONTENT_EXPORT IndexedDBKeyRangeBuilder {
29 public:
30 static IndexedDBKeyRange Build(const WebKit::WebIDBKeyRange& key_range);
31 };
32
33 class CONTENT_EXPORT IndexedDBKeyPathBuilder {
34 public:
35 static IndexedDBKeyPath Build(const WebKit::WebIDBKeyPath& key_path);
36 static WebKit::WebIDBKeyPath Build(const IndexedDBKeyPath& key_path);
37 };
38
39 } // namespace content
40
41 #endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_KEY_BUILDERS_H_
OLDNEW
« no previous file with comments | « content/child/indexed_db/indexed_db_dispatcher.cc ('k') | content/child/indexed_db/indexed_db_key_builders.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698