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