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

Unified Diff: content/browser/dom_storage/dom_storage_message_filter_new.cc

Issue 9718029: DomStorage commit task sequencing. (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/dom_storage/dom_storage_context_impl_new.cc ('k') | webkit/dom_storage/dom_storage_area.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/dom_storage/dom_storage_message_filter_new.cc
===================================================================
--- content/browser/dom_storage/dom_storage_message_filter_new.cc (revision 127736)
+++ content/browser/dom_storage/dom_storage_message_filter_new.cc (working copy)
@@ -19,6 +19,7 @@
#include "webkit/dom_storage/dom_storage_task_runner.h"
using content::BrowserThread;
+using dom_storage::DomStorageTaskRunner;
using WebKit::WebStorageArea;
DOMStorageMessageFilter::DOMStorageMessageFilter(
@@ -47,16 +48,18 @@
void DOMStorageMessageFilter::OnFilterAdded(IPC::Channel* channel) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
BrowserMessageFilter::OnFilterAdded(channel);
- context_->task_runner()->PostTask(
+ context_->task_runner()->PostShutdownBlockingTask(
FROM_HERE,
+ DomStorageTaskRunner::PRIMARY_SEQUENCE,
base::Bind(&DOMStorageMessageFilter::InitializeInSequence, this));
}
void DOMStorageMessageFilter::OnFilterRemoved() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
BrowserMessageFilter::OnFilterRemoved();
- context_->task_runner()->PostTask(
+ context_->task_runner()->PostShutdownBlockingTask(
FROM_HERE,
+ DomStorageTaskRunner::PRIMARY_SEQUENCE,
base::Bind(&DOMStorageMessageFilter::UninitializeInSequence, this));
}
« no previous file with comments | « content/browser/dom_storage/dom_storage_context_impl_new.cc ('k') | webkit/dom_storage/dom_storage_area.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698