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

Unified Diff: content/common/indexed_db/indexed_db_key_range.cc

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/common/indexed_db/indexed_db_key_range.cc
diff --git a/content/common/indexed_db/indexed_db_key_range.cc b/content/common/indexed_db/indexed_db_key_range.cc
index 77b9b9af8320974924fddab4d5e829e1f9ee6a2b..2c113eefe94fcf7abf4ef2c7a2975b5c7e76e329 100644
--- a/content/common/indexed_db/indexed_db_key_range.cc
+++ b/content/common/indexed_db/indexed_db_key_range.cc
@@ -5,24 +5,16 @@
#include "content/common/indexed_db/indexed_db_key_range.h"
#include "base/logging.h"
-#include "third_party/WebKit/public/platform/WebIDBKey.h"
+#include "third_party/WebKit/public/platform/WebIDBTypes.h"
namespace content {
-using WebKit::WebIDBKeyRange;
-
IndexedDBKeyRange::IndexedDBKeyRange()
: lower_(WebKit::WebIDBKeyTypeNull),
upper_(WebKit::WebIDBKeyTypeNull),
lower_open_(false),
upper_open_(false) {}
-IndexedDBKeyRange::IndexedDBKeyRange(const WebIDBKeyRange& key_range)
- : lower_(key_range.lower()),
- upper_(key_range.upper()),
- lower_open_(key_range.lowerOpen()),
- upper_open_(key_range.upperOpen()) {}
-
IndexedDBKeyRange::IndexedDBKeyRange(const IndexedDBKey& lower,
const IndexedDBKey& upper,
bool lower_open,
@@ -44,8 +36,4 @@ bool IndexedDBKeyRange::IsOnlyKey() const {
return lower_.IsEqual(upper_);
}
-IndexedDBKeyRange::operator WebIDBKeyRange() const {
- return WebIDBKeyRange(lower_, upper_, lower_open_, upper_open_);
-}
-
} // namespace content
« no previous file with comments | « content/common/indexed_db/indexed_db_key_range.h ('k') | content/common/indexed_db/indexed_db_key_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698