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

Unified Diff: content/browser/indexed_db/indexed_db_metadata.h

Issue 475063004: IndexedDB + Coding Style: re-order enums/typedefs/... to match guide (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore CONTENT_EXPORT to Transaction Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/indexed_db_metadata.h
diff --git a/content/browser/indexed_db/indexed_db_metadata.h b/content/browser/indexed_db/indexed_db_metadata.h
index 68df82ed842fe4289cb9b8ff31d5ddca0e3d16eb..a597616c55f4b799d13af880cef81d626f2f91f5 100644
--- a/content/browser/indexed_db/indexed_db_metadata.h
+++ b/content/browser/indexed_db/indexed_db_metadata.h
@@ -14,6 +14,8 @@
namespace content {
struct IndexedDBIndexMetadata {
+ static const int64 kInvalidId = -1;
+
IndexedDBIndexMetadata() {}
IndexedDBIndexMetadata(const base::string16& name,
int64 id,
@@ -30,11 +32,13 @@ struct IndexedDBIndexMetadata {
IndexedDBKeyPath key_path;
bool unique;
bool multi_entry;
-
- static const int64 kInvalidId = -1;
};
struct CONTENT_EXPORT IndexedDBObjectStoreMetadata {
+ typedef std::map<int64, IndexedDBIndexMetadata> IndexMap;
+
+ static const int64 kInvalidId = -1;
+
IndexedDBObjectStoreMetadata();
IndexedDBObjectStoreMetadata(const base::string16& name,
int64 id,
@@ -48,9 +52,6 @@ struct CONTENT_EXPORT IndexedDBObjectStoreMetadata {
bool auto_increment;
int64 max_index_id;
- static const int64 kInvalidId = -1;
-
- typedef std::map<int64, IndexedDBIndexMetadata> IndexMap;
IndexMap indexes;
};

Powered by Google App Engine
This is Rietveld 408576698