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..82022f40062e408bbce0fe7317d46d19bf1fc2d8 100644 |
--- a/content/public/browser/indexed_db_context.h |
+++ b/content/public/browser/indexed_db_context.h |
@@ -34,9 +34,13 @@ 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; |
+ virtual base::FilePath GetFilePath(const GURL& origin_url) const = 0; |
// Set the task runner for tests if browser main loop is not initialized. |
virtual void SetTaskRunnerForTesting( |
base::SequencedTaskRunner* task_runner) = 0; |