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

Side by Side Diff: content/common/indexed_db/indexed_db_key_range.cc

Issue 19442002: Convert to new WebIDBTypes enums and accessors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix content/common/DEPS Created 7 years, 5 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
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
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
OLDNEW
« no previous file with comments | « content/common/indexed_db/indexed_db_key_path.cc ('k') | content/common/indexed_db/indexed_db_key_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698