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

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

Issue 1071683002: IndexedDB: Use C++11 in-class member initializers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback Created 5 years, 8 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
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 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_RANGE_H_ 5 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_RANGE_H_
6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_RANGE_H_ 6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_RANGE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/common/indexed_db/indexed_db_key.h" 10 #include "content/common/indexed_db/indexed_db_key.h"
(...skipping 13 matching lines...) Expand all
24 IndexedDBKeyRange& operator=(const IndexedDBKeyRange& other); 24 IndexedDBKeyRange& operator=(const IndexedDBKeyRange& other);
25 25
26 const IndexedDBKey& lower() const { return lower_; } 26 const IndexedDBKey& lower() const { return lower_; }
27 const IndexedDBKey& upper() const { return upper_; } 27 const IndexedDBKey& upper() const { return upper_; }
28 bool lower_open() const { return lower_open_; } 28 bool lower_open() const { return lower_open_; }
29 bool upper_open() const { return upper_open_; } 29 bool upper_open() const { return upper_open_; }
30 30
31 bool IsOnlyKey() const; 31 bool IsOnlyKey() const;
32 32
33 private: 33 private:
34 IndexedDBKey lower_; 34 IndexedDBKey lower_ = IndexedDBKey(blink::WebIDBKeyTypeNull);
35 IndexedDBKey upper_; 35 IndexedDBKey upper_ = IndexedDBKey(blink::WebIDBKeyTypeNull);
36 bool lower_open_; 36 bool lower_open_ = false;
37 bool upper_open_; 37 bool upper_open_ = false;
38 }; 38 };
39 39
40 } // namespace content 40 } // namespace content
41 41
42 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_RANGE_H_ 42 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_RANGE_H_
OLDNEW
« no previous file with comments | « content/common/indexed_db/indexed_db_key.cc ('k') | content/common/indexed_db/indexed_db_key_range.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698