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

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

Issue 13949013: Implement download link in chrome://indexeddb-internals/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update to reflect new zip/ location Created 7 years, 8 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 | « content/DEPS ('k') | content/browser/indexed_db/indexed_db_context_impl.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_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 52aa57b052c1ff9fea447a8f742faa132d78058c..db4da12903590ff742c07daf6e1d3a07d171afb5 100644
--- a/content/browser/indexed_db/indexed_db_context_impl.h
+++ b/content/browser/indexed_db/indexed_db_context_impl.h
@@ -54,9 +54,7 @@ class CONTENT_EXPORT IndexedDBContextImpl
static const base::FilePath::CharType kIndexedDBExtension[];
// Disables the exit-time deletion of session-only data.
- void SetForceKeepSessionState() {
- force_keep_session_state_ = true;
- }
+ void SetForceKeepSessionState() { force_keep_session_state_ = true; }
jsbell 2013/04/29 19:16:14 Looks like you ran clang-format over this?
alecflett 2013/04/29 22:28:16 yes.
// IndexedDBContext implementation:
virtual std::vector<GURL> GetAllOrigins() OVERRIDE;
@@ -64,8 +62,8 @@ class CONTENT_EXPORT IndexedDBContextImpl
virtual int64 GetOriginDiskUsage(const GURL& origin_url) OVERRIDE;
virtual base::Time GetOriginLastModified(const GURL& origin_url) OVERRIDE;
virtual void DeleteForOrigin(const GURL& origin_url) OVERRIDE;
- virtual base::FilePath GetFilePathForTesting(
- const string16& origin_id) const OVERRIDE;
+ virtual base::FilePath GetFilePathForTesting(const string16& origin_id) const
+ OVERRIDE;
// Methods called by IndexedDBDispatcherHost for quota support.
void ConnectionOpened(const GURL& origin_url, WebKit::WebIDBDatabase*);
@@ -76,6 +74,9 @@ class CONTENT_EXPORT IndexedDBContextImpl
quota::QuotaManagerProxy* quota_manager_proxy();
+ void ForceClose(const GURL& origin_url);
+ base::FilePath GetFilePath(const GURL& origin_url);
+ bool HasOrigin(const GURL& origin_url);
base::FilePath data_path() const { return data_path_; }
// For unit tests allow to override the |data_path_|.
@@ -100,8 +101,10 @@ class CONTENT_EXPORT IndexedDBContextImpl
int64 ReadUsageFromDisk(const GURL& origin_url) const;
void EnsureDiskUsageCacheInitialized(const GURL& origin_url);
void QueryDiskAndUpdateQuotaUsage(const GURL& origin_url);
- void GotUsageAndQuota(const GURL& origin_url, quota::QuotaStatusCode,
- int64 usage, int64 quota);
+ void GotUsageAndQuota(const GURL& origin_url,
+ quota::QuotaStatusCode,
+ int64 usage,
+ int64 quota);
void GotUpdatedQuota(const GURL& origin_url, int64 usage, int64 quota);
void QueryAvailableQuota(const GURL& origin_url);
@@ -112,10 +115,6 @@ class CONTENT_EXPORT IndexedDBContextImpl
void RemoveFromOriginSet(const GURL& origin_url) {
GetOriginSet()->erase(origin_url);
}
- bool IsInOriginSet(const GURL& origin_url) {
jsbell 2013/04/29 19:16:14 Just a minor note about the name change here (IsIn
alecflett 2013/04/29 22:28:16 oops this is somewhat leftover from an earlier ver
- std::set<GURL>* set = GetOriginSet();
- return set->find(origin_url) != set->end();
- }
// Only for testing.
void ResetCaches();
« no previous file with comments | « content/DEPS ('k') | content/browser/indexed_db/indexed_db_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698