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

Unified Diff: content/public/browser/dom_storage_context.h

Issue 9700007: ContentAPI change - Post DomStorage tasks via a SequencedTaskRunner instead of directly to WEBKIT_DE (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 months 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
« no previous file with comments | « content/browser/in_process_webkit/dom_storage_context_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/dom_storage_context.h
===================================================================
--- content/public/browser/dom_storage_context.h (revision 126447)
+++ content/public/browser/dom_storage_context.h (working copy)
@@ -15,6 +15,7 @@
class FilePath;
namespace base {
+class SequencedTaskRunner;
class Time;
}
@@ -23,11 +24,15 @@
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;
« no previous file with comments | « content/browser/in_process_webkit/dom_storage_context_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698