summaryrefslogtreecommitdiffstats
path: root/content/public/browser/dom_storage_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/public/browser/dom_storage_context.h')
-rw-r--r--content/public/browser/dom_storage_context.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/content/public/browser/dom_storage_context.h b/content/public/browser/dom_storage_context.h
index 68415f1..9d21ebb 100644
--- a/content/public/browser/dom_storage_context.h
+++ b/content/public/browser/dom_storage_context.h
@@ -15,6 +15,7 @@
class FilePath;
namespace base {
+class SequencedTaskRunner;
class Time;
}
@@ -23,11 +24,15 @@ namespace content {
class BrowserContext;
// Represents the per-BrowserContext Local Storage data.
-// Call these methods only on the WebKit thread.
+// Call these methods only on tasks scheduled via it's task_runner().
class DOMStorageContext : public base::RefCountedThreadSafe<DOMStorageContext> {
public:
virtual ~DOMStorageContext() {}
+ // Returns a task runner which should be used to schedule tasks
+ // which can invoke the other methods of this interface.
+ virtual base::SequencedTaskRunner* task_runner() const = 0;
+
// Returns all the file paths of local storage files.
virtual std::vector<FilePath> GetAllStorageFiles() = 0;