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

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

Issue 671873004: Migrates legacy packaged app data when it's upgraded to a platform app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments and adds tests Created 6 years 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 8fff76c7a3098d43c24332f0f5784709fab1c047..169c9eb848a53342ef4929e30c6f058eeda26f8a 100644
--- a/content/browser/indexed_db/indexed_db_context_impl.h
+++ b/content/browser/indexed_db/indexed_db_context_impl.h
@@ -45,6 +45,7 @@ class CONTENT_EXPORT IndexedDBContextImpl
FORCE_CLOSE_DELETE_ORIGIN = 0,
FORCE_CLOSE_BACKING_STORE_FAILURE,
FORCE_CLOSE_INTERNALS_PAGE,
+ FORCE_CLOSE_COPY_ORIGIN,
FORCE_CLOSE_REASON_MAX
};
@@ -67,8 +68,9 @@ class CONTENT_EXPORT IndexedDBContextImpl
std::vector<IndexedDBInfo> GetAllOriginsInfo() override;
int64 GetOriginDiskUsage(const GURL& origin_url) override;
void DeleteForOrigin(const GURL& origin_url) override;
- base::FilePath GetFilePathForTesting(
- const std::string& origin_id) const override;
+ void CopyOriginData(const GURL& origin_url,
+ IndexedDBContext* dest_context) override;
+ base::FilePath GetFilePath(const GURL& origin_url) const override;
void SetTaskRunnerForTesting(base::SequencedTaskRunner* task_runner) override;
// Methods called by IndexedDBDispatcherHost for quota support.
@@ -89,7 +91,6 @@ class CONTENT_EXPORT IndexedDBContextImpl
// owning object.
void ForceClose(const GURL origin_url, ForceCloseReason reason);
- base::FilePath GetFilePath(const GURL& origin_url) const;
base::FilePath data_path() const { return data_path_; }
bool IsInOriginSet(const GURL& origin_url) {
std::set<GURL>* set = GetOriginSet();

Powered by Google App Engine
This is Rietveld 408576698