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

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

Issue 475063004: IndexedDB + Coding Style: re-order enums/typedefs/... to match guide (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased after r291485 Created 6 years, 4 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
« no previous file with comments | « content/child/indexed_db/webidbcursor_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_H_
6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_H_ 6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 typedef std::vector<IndexedDBKey> KeyArray; 25 typedef std::vector<IndexedDBKey> KeyArray;
26 26
27 IndexedDBKey(); // Defaults to blink::WebIDBKeyTypeInvalid. 27 IndexedDBKey(); // Defaults to blink::WebIDBKeyTypeInvalid.
28 explicit IndexedDBKey(blink::WebIDBKeyType); // must be Null or Invalid 28 explicit IndexedDBKey(blink::WebIDBKeyType); // must be Null or Invalid
29 explicit IndexedDBKey(const KeyArray& array); 29 explicit IndexedDBKey(const KeyArray& array);
30 explicit IndexedDBKey(const std::string& binary); 30 explicit IndexedDBKey(const std::string& binary);
31 explicit IndexedDBKey(const base::string16& string); 31 explicit IndexedDBKey(const base::string16& string);
32 IndexedDBKey(double number, 32 IndexedDBKey(double number,
33 blink::WebIDBKeyType type); // must be date or number 33 blink::WebIDBKeyType type); // must be date or number
34 IndexedDBKey(const IndexedDBKey& other);
34 ~IndexedDBKey(); 35 ~IndexedDBKey();
35 36
36 IndexedDBKey(const IndexedDBKey& other);
37 IndexedDBKey& operator=(const IndexedDBKey& other); 37 IndexedDBKey& operator=(const IndexedDBKey& other);
38 38
39 bool IsValid() const; 39 bool IsValid() const;
40 40
41 bool IsLessThan(const IndexedDBKey& other) const; 41 bool IsLessThan(const IndexedDBKey& other) const;
42 bool Equals(const IndexedDBKey& other) const; 42 bool Equals(const IndexedDBKey& other) const;
43 43
44 blink::WebIDBKeyType type() const { return type_; } 44 blink::WebIDBKeyType type() const { return type_; }
45 const std::vector<IndexedDBKey>& array() const { return array_; } 45 const std::vector<IndexedDBKey>& array() const { return array_; }
46 const std::string& binary() const { return binary_; } 46 const std::string& binary() const { return binary_; }
(...skipping 12 matching lines...) Expand all
59 base::string16 string_; 59 base::string16 string_;
60 double date_; 60 double date_;
61 double number_; 61 double number_;
62 62
63 size_t size_estimate_; 63 size_t size_estimate_;
64 }; 64 };
65 65
66 } // namespace content 66 } // namespace content
67 67
68 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_H_ 68 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_H_
OLDNEW
« no previous file with comments | « content/child/indexed_db/webidbcursor_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698