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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: content/child/indexed_db/indexed_db_key_builders.h
diff --git a/content/child/indexed_db/indexed_db_key_builders.h b/content/child/indexed_db/indexed_db_key_builders.h
new file mode 100644
index 0000000000000000000000000000000000000000..e15b63bd47a02ffb5b68b998c7680a9cdc77b694
--- /dev/null
+++ b/content/child/indexed_db/indexed_db_key_builders.h
@@ -0,0 +1,49 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_CHILD_INDEXED_DB_INDEXED_DB_KEY_BUILDERS_H_
+#define CONTENT_CHILD_INDEXED_DB_INDEXED_DB_KEY_BUILDERS_H_
+
+#include "content/common/content_export.h"
+#include "content/common/indexed_db/indexed_db_key.h"
+#include "content/common/indexed_db/indexed_db_key_path.h"
+#include "content/common/indexed_db/indexed_db_key_range.h"
+#include "third_party/WebKit/public/platform/WebIDBKey.h"
+#include "third_party/WebKit/public/platform/WebIDBKeyPath.h"
+#include "third_party/WebKit/public/platform/WebIDBKeyRange.h"
+
+namespace WebKit {
+class WebIDBKey;
+}
+
+namespace content {
+
+class CONTENT_EXPORT IndexedDBKeyBuilder {
+ public:
+ static IndexedDBKey Build(const WebKit::WebIDBKey& key);
+};
+
+class CONTENT_EXPORT WebIDBKeyBuilder {
+ public:
+ static WebKit::WebIDBKey Build(const content::IndexedDBKey& key);
+};
+
+class CONTENT_EXPORT IndexedDBKeyRangeBuilder {
+ public:
+ static IndexedDBKeyRange Build(const WebKit::WebIDBKeyRange& key_range);
+};
+
+class CONTENT_EXPORT IndexedDBKeyPathBuilder {
+ public:
+ static IndexedDBKeyPath Build(const WebKit::WebIDBKeyPath& key_path);
+};
+
+class CONTENT_EXPORT WebIDBKeyPathBuilder {
+ public:
+ static WebKit::WebIDBKeyPath Build(const IndexedDBKeyPath& key_path);
+};
+
+} // namespace content
+
+#endif // CONTENT_CHILD_INDEXED_DB_INDEXED_DB_KEY_BUILDERS_H_
« 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