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

Unified Diff: content/public/browser/indexed_db_context.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: Rebase 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/public/browser/indexed_db_context.h
diff --git a/content/public/browser/indexed_db_context.h b/content/public/browser/indexed_db_context.h
index af469e33027e45c9bb1e113b0f1870352bb7beeb..136c30c3a25c164b882ad8ff32c84bd38bc34524 100644
--- a/content/public/browser/indexed_db_context.h
+++ b/content/public/browser/indexed_db_context.h
@@ -34,6 +34,11 @@ class IndexedDBContext : public base::RefCountedThreadSafe<IndexedDBContext> {
// Deletes all indexed db files for the given origin.
virtual void DeleteForOrigin(const GURL& origin_url) = 0;
+ // Copies the indexed db files from this context to another. The
+ // indexed db directory in the destination context needs to be empty.
+ virtual void CopyOriginData(const GURL& origin_url,
+ IndexedDBContext* dest_context) = 0;
+
// Get the file name of the local storage file for the given origin.
virtual base::FilePath GetFilePathForTesting(
const std::string& origin_id) const = 0;

Powered by Google App Engine
This is Rietveld 408576698