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

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

Issue 9389025: IndexedDB: Implement IPC plumbing for IDBObjectStore.delete(IDBKeyRange) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename to avoid overloading, remove bad includes Created 8 years, 10 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.h
diff --git a/content/common/indexed_db/indexed_db_key_range.h b/content/common/indexed_db/indexed_db_key_range.h
new file mode 100644
index 0000000000000000000000000000000000000000..4b5e0fa6e42af41c1d8f813d9369eef38b6fb245
--- /dev/null
+++ b/content/common/indexed_db/indexed_db_key_range.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 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_COMMON_INDEXED_DB_INDEXED_DB_KEY_RANGE_H_
+#define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_RANGE_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "content/common/content_export.h"
+#include "content/common/indexed_db/indexed_db_key.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyRange.h"
+
+class CONTENT_EXPORT IndexedDBKeyRange {
+ public:
+ IndexedDBKeyRange();
+ explicit IndexedDBKeyRange(const WebKit::WebIDBKeyRange& key_range);
+ ~IndexedDBKeyRange();
+
+ const IndexedDBKey& lower() const { return lower_; }
+ const IndexedDBKey& upper() const { return upper_; }
+ bool lowerOpen() const { return lower_open_; }
+ bool upperOpen() const { return upper_open_; }
+
+ void Set(const IndexedDBKey& lower, const IndexedDBKey& upper,
+ bool lower_open, bool upper_open);
+
+ operator WebKit::WebIDBKeyRange() const;
+
+ private:
+ IndexedDBKey lower_;
+ IndexedDBKey upper_;
+ bool lower_open_;
+ bool upper_open_;
+};
+
+#endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_RANGE_H_
« no previous file with comments | « content/common/indexed_db/indexed_db_dispatcher.cc ('k') | content/common/indexed_db/indexed_db_key_range.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698