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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
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 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_RANGE_H_
6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_RANGE_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "content/common/content_export.h"
11 #include "content/common/indexed_db/indexed_db_key.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyRange.h"
13
14 class CONTENT_EXPORT IndexedDBKeyRange {
15 public:
16 IndexedDBKeyRange();
17 explicit IndexedDBKeyRange(const WebKit::WebIDBKeyRange& key_range);
18 ~IndexedDBKeyRange();
19
20 const IndexedDBKey& lower() const { return lower_; }
21 const IndexedDBKey& upper() const { return upper_; }
22 bool lowerOpen() const { return lower_open_; }
23 bool upperOpen() const { return upper_open_; }
24
25 void Set(const IndexedDBKey& lower, const IndexedDBKey& upper,
26 bool lower_open, bool upper_open);
27
28 operator WebKit::WebIDBKeyRange() const;
29
30 private:
31 IndexedDBKey lower_;
32 IndexedDBKey upper_;
33 bool lower_open_;
34 bool upper_open_;
35 };
36
37 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_RANGE_H_
OLDNEW
« 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