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

Unified Diff: content/browser/in_process_webkit/dom_storage_context_impl.cc

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
Index: content/browser/in_process_webkit/dom_storage_context_impl.cc
===================================================================
--- content/browser/in_process_webkit/dom_storage_context_impl.cc (revision 126447)
+++ content/browser/in_process_webkit/dom_storage_context_impl.cc (working copy)
@@ -64,7 +64,10 @@
last_session_storage_namespace_id_on_io_thread_(kLocalStorageNamespaceId),
clear_local_state_on_exit_(false),
save_session_state_(false),
- special_storage_policy_(special_storage_policy) {
+ special_storage_policy_(special_storage_policy),
+ webkit_message_loop_(
+ BrowserThread::GetMessageLoopProxyForThread(
+ BrowserThread::WEBKIT_DEPRECATED)) {
data_path_ = data_path;
}
@@ -292,6 +295,10 @@
RegisterStorageNamespace(existing_namespace->Copy(clone_id));
}
+base::SequencedTaskRunner* DOMStorageContextImpl::task_runner() const {
+ return webkit_message_loop_;
+}
+
std::vector<FilePath> DOMStorageContextImpl::GetAllStorageFiles() {
std::vector<FilePath> files;
file_util::FileEnumerator file_enumerator(
« no previous file with comments | « content/browser/in_process_webkit/dom_storage_context_impl.h ('k') | content/public/browser/dom_storage_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698