summaryrefslogtreecommitdiffstats
path: root/chrome/browser/in_process_webkit/webkit_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/in_process_webkit/webkit_context.cc')
-rw-r--r--chrome/browser/in_process_webkit/webkit_context.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/chrome/browser/in_process_webkit/webkit_context.cc b/chrome/browser/in_process_webkit/webkit_context.cc
index 598e5aa..8e54179 100644
--- a/chrome/browser/in_process_webkit/webkit_context.cc
+++ b/chrome/browser/in_process_webkit/webkit_context.cc
@@ -23,24 +23,24 @@ WebKitContext::~WebKitContext() {
// will just get deleted if the WebKit thread isn't created (which only
// happens during testing).
DOMStorageContext* dom_storage_context = dom_storage_context_.release();
- if (!ChromeThread::DeleteSoon(
- ChromeThread::WEBKIT, FROM_HERE, dom_storage_context)) {
+ if (!BrowserThread::DeleteSoon(
+ BrowserThread::WEBKIT, FROM_HERE, dom_storage_context)) {
// The WebKit thread wasn't created, and the task got deleted without
// freeing the DOMStorageContext, so delete it manually.
delete dom_storage_context;
}
IndexedDBContext* indexed_db_context = indexed_db_context_.release();
- if (!ChromeThread::DeleteSoon(
- ChromeThread::WEBKIT, FROM_HERE, indexed_db_context)) {
+ if (!BrowserThread::DeleteSoon(
+ BrowserThread::WEBKIT, FROM_HERE, indexed_db_context)) {
delete indexed_db_context;
}
}
void WebKitContext::PurgeMemory() {
- if (!ChromeThread::CurrentlyOn(ChromeThread::WEBKIT)) {
- bool result = ChromeThread::PostTask(
- ChromeThread::WEBKIT, FROM_HERE,
+ if (!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT)) {
+ bool result = BrowserThread::PostTask(
+ BrowserThread::WEBKIT, FROM_HERE,
NewRunnableMethod(this, &WebKitContext::PurgeMemory));
DCHECK(result);
return;
@@ -53,9 +53,9 @@ void WebKitContext::DeleteDataModifiedSince(
const base::Time& cutoff,
const char* url_scheme_to_be_skipped,
const std::vector<string16>& protected_origins) {
- if (!ChromeThread::CurrentlyOn(ChromeThread::WEBKIT)) {
- bool result = ChromeThread::PostTask(
- ChromeThread::WEBKIT, FROM_HERE,
+ if (!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT)) {
+ bool result = BrowserThread::PostTask(
+ BrowserThread::WEBKIT, FROM_HERE,
NewRunnableMethod(this, &WebKitContext::DeleteDataModifiedSince,
cutoff, url_scheme_to_be_skipped, protected_origins));
DCHECK(result);
@@ -69,9 +69,9 @@ void WebKitContext::DeleteDataModifiedSince(
void WebKitContext::DeleteSessionStorageNamespace(
int64 session_storage_namespace_id) {
- if (!ChromeThread::CurrentlyOn(ChromeThread::WEBKIT)) {
- ChromeThread::PostTask(
- ChromeThread::WEBKIT, FROM_HERE,
+ if (!BrowserThread::CurrentlyOn(BrowserThread::WEBKIT)) {
+ BrowserThread::PostTask(
+ BrowserThread::WEBKIT, FROM_HERE,
NewRunnableMethod(this, &WebKitContext::DeleteSessionStorageNamespace,
session_storage_namespace_id));
return;