OLD | NEW |
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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.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/Platform/chromium/public/WebIDBKey.h" | 14 #include "third_party/WebKit/public/platform/WebIDBKey.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 class CONTENT_EXPORT IndexedDBKey { | 18 class CONTENT_EXPORT IndexedDBKey { |
19 public: | 19 public: |
20 typedef std::vector<IndexedDBKey> KeyArray; | 20 typedef std::vector<IndexedDBKey> KeyArray; |
21 | 21 |
22 IndexedDBKey(); // Defaults to WebKit::WebIDBKey::InvalidType. | 22 IndexedDBKey(); // Defaults to WebKit::WebIDBKey::InvalidType. |
23 IndexedDBKey(WebKit::WebIDBKey::Type); // must be Null or Invalid | 23 IndexedDBKey(WebKit::WebIDBKey::Type); // must be Null or Invalid |
24 explicit IndexedDBKey(const KeyArray& array); | 24 explicit IndexedDBKey(const KeyArray& array); |
(...skipping 29 matching lines...) Expand all Loading... |
54 | 54 |
55 // Very rough estimate of minimum key size overhead. | 55 // Very rough estimate of minimum key size overhead. |
56 enum { | 56 enum { |
57 kOverheadSize = 16 | 57 kOverheadSize = 16 |
58 }; | 58 }; |
59 }; | 59 }; |
60 | 60 |
61 } // namespace content | 61 } // namespace content |
62 | 62 |
63 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_H_ | 63 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_KEY_H_ |
OLD | NEW |