| 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 | 8 |
| 9 namespace content { |
| 10 |
| 9 using WebKit::WebIDBKeyRange; | 11 using WebKit::WebIDBKeyRange; |
| 10 using WebKit::WebIDBKey; | 12 using WebKit::WebIDBKey; |
| 11 | 13 |
| 12 IndexedDBKeyRange::IndexedDBKeyRange() | 14 IndexedDBKeyRange::IndexedDBKeyRange() |
| 13 : lower_open_(false), | 15 : lower_open_(false), |
| 14 upper_open_(false) { | 16 upper_open_(false) { |
| 15 lower_.SetNull(); | 17 lower_.SetNull(); |
| 16 upper_.SetNull(); | 18 upper_.SetNull(); |
| 17 } | 19 } |
| 18 | 20 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 bool lower_open, bool upper_open) { | 34 bool lower_open, bool upper_open) { |
| 33 lower_.Set(lower); | 35 lower_.Set(lower); |
| 34 upper_.Set(upper); | 36 upper_.Set(upper); |
| 35 lower_open_ = lower_open; | 37 lower_open_ = lower_open; |
| 36 upper_open_ = upper_open; | 38 upper_open_ = upper_open; |
| 37 } | 39 } |
| 38 | 40 |
| 39 IndexedDBKeyRange::operator WebIDBKeyRange() const { | 41 IndexedDBKeyRange::operator WebIDBKeyRange() const { |
| 40 return WebIDBKeyRange(lower_, upper_, lower_open_, upper_open_); | 42 return WebIDBKeyRange(lower_, upper_, lower_open_, upper_open_); |
| 41 } | 43 } |
| 44 |
| 45 } // namespace content |
| OLD | NEW |