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

Side by Side Diff: content/browser/indexed_db/indexed_db_metadata.h

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring after Passing URLRequestContextGetter. Created 4 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
OLDNEW
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
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 13 matching lines...) Expand all
62 // TODO(jsbell): These can probably be collapsed into 0. 61 // TODO(jsbell): These can probably be collapsed into 0.
63 enum { NO_VERSION = -1, DEFAULT_VERSION = 0 }; 62 enum { NO_VERSION = -1, DEFAULT_VERSION = 0 };
64 63
65 IndexedDBDatabaseMetadata(); 64 IndexedDBDatabaseMetadata();
66 IndexedDBDatabaseMetadata(const base::string16& name, 65 IndexedDBDatabaseMetadata(const base::string16& name,
67 int64_t id, 66 int64_t id,
68 int64_t version, 67 int64_t version,
69 int64_t max_object_store_id); 68 int64_t max_object_store_id);
70 IndexedDBDatabaseMetadata(const IndexedDBDatabaseMetadata& other); 69 IndexedDBDatabaseMetadata(const IndexedDBDatabaseMetadata& other);
71 ~IndexedDBDatabaseMetadata(); 70 ~IndexedDBDatabaseMetadata();
72 IndexedDBDatabaseMetadata& operator=(IndexedDBDatabaseMetadata& other); 71 IndexedDBDatabaseMetadata& operator=(const IndexedDBDatabaseMetadata& other);
73 72
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_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_internals_ui.cc ('k') | content/browser/indexed_db/indexed_db_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698