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

Unified Diff: content/browser/indexed_db/indexed_db_context_impl.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
Index: content/browser/indexed_db/indexed_db_context_impl.h
diff --git a/content/browser/indexed_db/indexed_db_context_impl.h b/content/browser/indexed_db/indexed_db_context_impl.h
index 4afcb5984f04eaa8b82c0cb3580d1cf4b655e76c..1de74593b4eb2c75543f70e8f8c3affff546dc84 100644
--- a/content/browser/indexed_db/indexed_db_context_impl.h
+++ b/content/browser/indexed_db/indexed_db_context_impl.h
@@ -40,6 +40,17 @@ class IndexedDBConnection;
class CONTENT_EXPORT IndexedDBContextImpl
: NON_EXPORTED_BASE(public IndexedDBContext) {
public:
+ // Recorded in histograms, so append only.
+ enum ForceCloseReason {
+ FORCE_CLOSE_DELETE_ORIGIN = 0,
+ FORCE_CLOSE_BACKING_STORE_FAILURE,
+ FORCE_CLOSE_INTERNALS_PAGE,
+ FORCE_CLOSE_REASON_MAX
+ };
+
+ // The indexed db directory.
+ static const base::FilePath::CharType kIndexedDBDirectory[];
+
// If |data_path| is empty, nothing will be saved to disk.
IndexedDBContextImpl(const base::FilePath& data_path,
storage::SpecialStoragePolicy* special_storage_policy,
@@ -48,9 +59,6 @@ class CONTENT_EXPORT IndexedDBContextImpl
IndexedDBFactory* GetIDBFactory();
- // The indexed db directory.
- static const base::FilePath::CharType kIndexedDBDirectory[];
-
// Disables the exit-time deletion of session-only data.
void SetForceKeepSessionState() { force_keep_session_state_ = true; }
@@ -78,14 +86,6 @@ class CONTENT_EXPORT IndexedDBContextImpl
base::Time GetOriginLastModified(const GURL& origin_url);
base::ListValue* GetAllOriginsDetails();
- // Recorded in histograms, so append only.
- enum ForceCloseReason {
- FORCE_CLOSE_DELETE_ORIGIN = 0,
- FORCE_CLOSE_BACKING_STORE_FAILURE,
- FORCE_CLOSE_INTERNALS_PAGE,
- FORCE_CLOSE_REASON_MAX
- };
-
// ForceClose takes a value rather than a reference since it may release the
// owning object.
void ForceClose(const GURL origin_url, ForceCloseReason reason);
« no previous file with comments | « content/browser/indexed_db/indexed_db_blob_info.cc ('k') | content/browser/indexed_db/indexed_db_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698