Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 35 // Deletes all indexed db files for the given origin. | 35 // Deletes all indexed db files for the given origin. |
| 36 virtual void DeleteForOrigin(const GURL& origin_url) = 0; | 36 virtual void DeleteForOrigin(const GURL& origin_url) = 0; |
| 37 | 37 |
| 38 // Copies the indexed db files from this context to another. The | 38 // Copies the indexed db files from this context to another. The |
| 39 // indexed db directory in the destination context needs to be empty. | 39 // indexed db directory in the destination context needs to be empty. |
| 40 virtual void CopyOriginData(const GURL& origin_url, | 40 virtual void CopyOriginData(const GURL& origin_url, |
| 41 IndexedDBContext* dest_context) = 0; | 41 IndexedDBContext* dest_context) = 0; |
| 42 | 42 |
| 43 // Get the file name of the local storage file for the given origin. | 43 // Get the file name of the local storage file for the given origin. |
| 44 virtual base::FilePath GetFilePathForTesting( | 44 virtual base::FilePath GetFilePathForTesting( |
| 45 const std::string& origin_id) const = 0; | 45 const GURL& origin_url) const = 0; |
|
jochen (gone - plz use gerrit)
2016/03/10 15:46:51
should this be Origin?
jsbell
2016/03/10 17:27:55
In general, yes we should switch all of these uses
| |
| 46 | |
| 46 // Set the task runner for tests if browser main loop is not initialized. | 47 // Set the task runner for tests if browser main loop is not initialized. |
| 47 virtual void SetTaskRunnerForTesting( | 48 virtual void SetTaskRunnerForTesting( |
| 48 base::SequencedTaskRunner* task_runner) = 0; | 49 base::SequencedTaskRunner* task_runner) = 0; |
| 49 | 50 |
| 50 protected: | 51 protected: |
| 51 friend class base::RefCountedThreadSafe<IndexedDBContext>; | 52 friend class base::RefCountedThreadSafe<IndexedDBContext>; |
| 52 virtual ~IndexedDBContext() {} | 53 virtual ~IndexedDBContext() {} |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace content | 56 } // namespace content |
| 56 | 57 |
| 57 #endif // CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ | 58 #endif // CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ |
| OLD | NEW |