OLD | NEW |
(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_ |
OLD | NEW |