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

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

Powered by Google App Engine
This is Rietveld 408576698