OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_BROWSER_INDEXED_DB_INDEXED_DB_METADATA_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_METADATA_H_ |
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_METADATA_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_METADATA_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 17 matching lines...) Expand all Loading... |
28 IndexedDBIndexMetadata& operator=(const IndexedDBIndexMetadata& other); | 28 IndexedDBIndexMetadata& operator=(const IndexedDBIndexMetadata& other); |
29 | 29 |
30 base::string16 name; | 30 base::string16 name; |
31 int64_t id; | 31 int64_t id; |
32 IndexedDBKeyPath key_path; | 32 IndexedDBKeyPath key_path; |
33 bool unique; | 33 bool unique; |
34 bool multi_entry; | 34 bool multi_entry; |
35 }; | 35 }; |
36 | 36 |
37 struct CONTENT_EXPORT IndexedDBObjectStoreMetadata { | 37 struct CONTENT_EXPORT IndexedDBObjectStoreMetadata { |
38 | |
39 static const int64_t kInvalidId = -1; | 38 static const int64_t kInvalidId = -1; |
40 | 39 |
41 IndexedDBObjectStoreMetadata(); | 40 IndexedDBObjectStoreMetadata(); |
42 IndexedDBObjectStoreMetadata(const base::string16& name, | 41 IndexedDBObjectStoreMetadata(const base::string16& name, |
43 int64_t id, | 42 int64_t id, |
44 const IndexedDBKeyPath& key_path, | 43 const IndexedDBKeyPath& key_path, |
45 bool auto_increment, | 44 bool auto_increment, |
46 int64_t max_index_id); | 45 int64_t max_index_id); |
47 IndexedDBObjectStoreMetadata(const IndexedDBObjectStoreMetadata& other); | 46 IndexedDBObjectStoreMetadata(const IndexedDBObjectStoreMetadata& other); |
48 ~IndexedDBObjectStoreMetadata(); | 47 ~IndexedDBObjectStoreMetadata(); |
(...skipping 25 matching lines...) Expand all Loading... |
74 base::string16 name; | 73 base::string16 name; |
75 int64_t id; | 74 int64_t id; |
76 int64_t version; | 75 int64_t version; |
77 int64_t max_object_store_id; | 76 int64_t max_object_store_id; |
78 | 77 |
79 std::map<int64_t, IndexedDBObjectStoreMetadata> object_stores; | 78 std::map<int64_t, IndexedDBObjectStoreMetadata> object_stores; |
80 }; | 79 }; |
81 } // namespace content | 80 } // namespace content |
82 | 81 |
83 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_METADATA_H_ | 82 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_METADATA_H_ |
OLD | NEW |