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

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: Addresses review comments 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 9667ec3fe269ae4e16f5e6ce740c3cefb0d6b448..da2878bdb6fb67e9dda161c01e4f40bca919ac86 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,6 +68,8 @@ class CONTENT_EXPORT IndexedDBContextImpl
std::vector<IndexedDBInfo> GetAllOriginsInfo() override;
int64 GetOriginDiskUsage(const GURL& origin_url) override;
void DeleteForOrigin(const GURL& origin_url) override;
+ void CopyOriginData(const GURL& origin_url,
+ IndexedDBContext* dest_context) override;
base::FilePath GetFilePathForTesting(
const std::string& origin_id) const override;
void SetTaskRunnerForTesting(base::SequencedTaskRunner* task_runner) override;
@@ -91,6 +94,7 @@ class CONTENT_EXPORT IndexedDBContextImpl
// GetStoragePaths returns all paths owned by this database, in arbitrary
// order.
std::vector<base::FilePath> GetStoragePaths(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