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

Unified Diff: content/browser/indexed_db/indexed_db_active_blob_registry.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: Rebased after r291485 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
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_active_blob_registry_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_active_blob_registry.h
diff --git a/content/browser/indexed_db/indexed_db_active_blob_registry.h b/content/browser/indexed_db/indexed_db_active_blob_registry.h
index c9b7671e9986c67064e4707ebcab700c2237557b..e2cb5ae73a5951b899a44dbb0b023a67457c532c 100644
--- a/content/browser/indexed_db/indexed_db_active_blob_registry.h
+++ b/content/browser/indexed_db/indexed_db_active_blob_registry.h
@@ -43,6 +43,13 @@ class CONTENT_EXPORT IndexedDBActiveBlobRegistry {
void ForceShutdown();
private:
+ // Maps blob_key -> IsDeleted; if the record's absent, it's not in active use
+ // and we don't care if it's deleted.
+ typedef std::map<int64, bool> SingleDBMap;
+ // Maps DB ID -> SingleDBMap
+ typedef std::map<int64, SingleDBMap> AllDBsMap;
+ typedef std::set<int64> DeletedDBSet;
+
void AddBlobRef(int64 database_id, int64 blob_key);
void ReleaseBlobRef(int64 database_id, int64 blob_key);
static void ReleaseBlobRefThreadSafe(
@@ -52,13 +59,6 @@ class CONTENT_EXPORT IndexedDBActiveBlobRegistry {
int64 blob_key,
const base::FilePath& unused);
- // Maps blob_key -> IsDeleted; if the record's absent, it's not in active use
- // and we don't care if it's deleted.
- typedef std::map<int64, bool> SingleDBMap;
- // Maps DB ID -> SingleDBMap
- typedef std::map<int64, SingleDBMap> AllDBsMap;
- typedef std::set<int64> DeletedDBSet;
-
AllDBsMap use_tracker_;
DeletedDBSet deleted_dbs_;
// As long as we've got blobs registered in use_tracker_,
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_active_blob_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698