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

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

Issue 1133153002: Move Indexed DB Blink API headers to public/platform/modules/indexeddb (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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_PATH_H_ 5 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_PATH_H_
6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_PATH_H_ 6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_PATH_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "third_party/WebKit/public/platform/WebIDBTypes.h" 14 #include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 class CONTENT_EXPORT IndexedDBKeyPath { 18 class CONTENT_EXPORT IndexedDBKeyPath {
19 public: 19 public:
20 IndexedDBKeyPath(); // Defaults to blink::WebIDBKeyPathTypeNull. 20 IndexedDBKeyPath(); // Defaults to blink::WebIDBKeyPathTypeNull.
21 explicit IndexedDBKeyPath(const base::string16&); 21 explicit IndexedDBKeyPath(const base::string16&);
22 explicit IndexedDBKeyPath(const std::vector<base::string16>&); 22 explicit IndexedDBKeyPath(const std::vector<base::string16>&);
23 IndexedDBKeyPath(const IndexedDBKeyPath& other); 23 IndexedDBKeyPath(const IndexedDBKeyPath& other);
24 ~IndexedDBKeyPath(); 24 ~IndexedDBKeyPath();
25 IndexedDBKeyPath& operator=(const IndexedDBKeyPath& other); 25 IndexedDBKeyPath& operator=(const IndexedDBKeyPath& other);
26 26
27 bool IsNull() const { return type_ == blink::WebIDBKeyPathTypeNull; } 27 bool IsNull() const { return type_ == blink::WebIDBKeyPathTypeNull; }
28 bool operator==(const IndexedDBKeyPath& other) const; 28 bool operator==(const IndexedDBKeyPath& other) const;
29 29
30 blink::WebIDBKeyPathType type() const { return type_; } 30 blink::WebIDBKeyPathType type() const { return type_; }
31 const std::vector<base::string16>& array() const; 31 const std::vector<base::string16>& array() const;
32 const base::string16& string() const; 32 const base::string16& string() const;
33 33
34 private: 34 private:
35 blink::WebIDBKeyPathType type_; 35 blink::WebIDBKeyPathType type_;
36 base::string16 string_; 36 base::string16 string_;
37 std::vector<base::string16> array_; 37 std::vector<base::string16> array_;
38 }; 38 };
39 39
40 } // namespace content 40 } // namespace content
41 41
42 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_PATH_H_ 42 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_PATH_H_
OLDNEW
« no previous file with comments | « content/common/indexed_db/indexed_db_key.h ('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