OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/indexed_db/indexed_db_key_range.h" | 5 #include "content/common/indexed_db/indexed_db_key_range.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "third_party/WebKit/public/platform/WebIDBKey.h" |
8 | 9 |
9 namespace content { | 10 namespace content { |
10 | 11 |
11 using WebKit::WebIDBKeyRange; | 12 using WebKit::WebIDBKeyRange; |
12 using WebKit::WebIDBKey; | |
13 | 13 |
14 IndexedDBKeyRange::IndexedDBKeyRange() | 14 IndexedDBKeyRange::IndexedDBKeyRange() |
15 : lower_(WebIDBKey::NullType), | 15 : lower_(WebKit::WebIDBKeyTypeNull), |
16 upper_(WebIDBKey::NullType), | 16 upper_(WebKit::WebIDBKeyTypeNull), |
17 lower_open_(false), | 17 lower_open_(false), |
18 upper_open_(false) {} | 18 upper_open_(false) {} |
19 | 19 |
20 IndexedDBKeyRange::IndexedDBKeyRange(const WebIDBKeyRange& key_range) | 20 IndexedDBKeyRange::IndexedDBKeyRange(const WebIDBKeyRange& key_range) |
21 : lower_(key_range.lower()), | 21 : lower_(key_range.lower()), |
22 upper_(key_range.upper()), | 22 upper_(key_range.upper()), |
23 lower_open_(key_range.lowerOpen()), | 23 lower_open_(key_range.lowerOpen()), |
24 upper_open_(key_range.upperOpen()) {} | 24 upper_open_(key_range.upperOpen()) {} |
25 | 25 |
26 IndexedDBKeyRange::IndexedDBKeyRange(const IndexedDBKey& lower, | 26 IndexedDBKeyRange::IndexedDBKeyRange(const IndexedDBKey& lower, |
(...skipping 15 matching lines...) Expand all Loading... |
42 return false; | 42 return false; |
43 | 43 |
44 return lower_.IsEqual(upper_); | 44 return lower_.IsEqual(upper_); |
45 } | 45 } |
46 | 46 |
47 IndexedDBKeyRange::operator WebIDBKeyRange() const { | 47 IndexedDBKeyRange::operator WebIDBKeyRange() const { |
48 return WebIDBKeyRange(lower_, upper_, lower_open_, upper_open_); | 48 return WebIDBKeyRange(lower_, upper_, lower_open_, upper_open_); |
49 } | 49 } |
50 | 50 |
51 } // namespace content | 51 } // namespace content |
OLD | NEW |