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

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

Issue 10272018: Move IndexedDBKey, IndexedDBKeyRange into content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use "using content::*" aliasing for IDB/SSV types Created 8 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 | 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 #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 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h"
15 15
16 namespace content {
17
16 class CONTENT_EXPORT IndexedDBKey { 18 class CONTENT_EXPORT IndexedDBKey {
17 public: 19 public:
18 IndexedDBKey(); // Defaults to WebKit::WebIDBKey::InvalidType. 20 IndexedDBKey(); // Defaults to WebKit::WebIDBKey::InvalidType.
19 explicit IndexedDBKey(const WebKit::WebIDBKey& key); 21 explicit IndexedDBKey(const WebKit::WebIDBKey& key);
20 ~IndexedDBKey(); 22 ~IndexedDBKey();
21 23
22 void SetNull(); 24 void SetNull();
23 void SetInvalid(); 25 void SetInvalid();
24 void SetArray(const std::vector<IndexedDBKey>& array); 26 void SetArray(const std::vector<IndexedDBKey>& array);
25 void SetString(const string16& string); 27 void SetString(const string16& string);
(...skipping 10 matching lines...) Expand all
36 operator WebKit::WebIDBKey() const; 38 operator WebKit::WebIDBKey() const;
37 39
38 private: 40 private:
39 WebKit::WebIDBKey::Type type_; 41 WebKit::WebIDBKey::Type type_;
40 std::vector<IndexedDBKey> array_; 42 std::vector<IndexedDBKey> array_;
41 string16 string_; 43 string16 string_;
42 double date_; 44 double date_;
43 double number_; 45 double number_;
44 }; 46 };
45 47
48 } // namespace content
49
46 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_H_ 50 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_H_
OLDNEW
« no previous file with comments | « content/common/indexed_db/indexed_db_dispatcher_unittest.cc ('k') | content/common/indexed_db/indexed_db_key.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698