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

Unified Diff: content/browser/service_worker/service_worker_context_wrapper.cc

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Exclude certain files from jumbo because of a Windows problem Created 3 years, 3 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/service_worker/service_worker_context_wrapper.cc
diff --git a/content/browser/service_worker/service_worker_context_wrapper.cc b/content/browser/service_worker/service_worker_context_wrapper.cc
index d507875ea0ab32347afb19df9f2a5af33ac9e6fc..b5e99e667d48cd86547cab32287dccc315a4075c 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.cc
+++ b/content/browser/service_worker/service_worker_context_wrapper.cc
@@ -43,7 +43,7 @@ typedef std::set<std::string> HeaderNameSet;
base::LazyInstance<HeaderNameSet>::DestructorAtExit g_excluded_header_name_set =
LAZY_INSTANCE_INITIALIZER;
-void RunSoon(const base::Closure& closure) {
+void RunSoonFunctionNumber21(const base::Closure& closure) {
base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, closure);
}
@@ -546,7 +546,7 @@ void ServiceWorkerContextWrapper::FindReadyRegistrationForPattern(
const FindRegistrationCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!context_core_) {
- RunSoon(base::Bind(callback, SERVICE_WORKER_ERROR_ABORT, nullptr));
+ RunSoonFunctionNumber21(base::Bind(callback, SERVICE_WORKER_ERROR_ABORT, nullptr));
return;
}
context_core_->storage()->FindRegistrationForPattern(
@@ -590,7 +590,7 @@ void ServiceWorkerContextWrapper::GetAllRegistrations(
const GetRegistrationsInfosCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!context_core_) {
- RunSoon(base::Bind(callback, SERVICE_WORKER_ERROR_ABORT,
+ RunSoonFunctionNumber21(base::Bind(callback, SERVICE_WORKER_ERROR_ABORT,
std::vector<ServiceWorkerRegistrationInfo>()));
return;
}
@@ -603,7 +603,7 @@ void ServiceWorkerContextWrapper::GetRegistrationUserData(
const GetUserDataCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!context_core_) {
- RunSoon(base::Bind(callback, std::vector<std::string>(),
+ RunSoonFunctionNumber21(base::Bind(callback, std::vector<std::string>(),
SERVICE_WORKER_ERROR_ABORT));
return;
}
@@ -616,7 +616,7 @@ void ServiceWorkerContextWrapper::GetRegistrationUserDataByKeyPrefix(
const GetUserDataCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!context_core_) {
- RunSoon(base::Bind(callback, std::vector<std::string>(),
+ RunSoonFunctionNumber21(base::Bind(callback, std::vector<std::string>(),
SERVICE_WORKER_ERROR_ABORT));
return;
}
@@ -631,7 +631,7 @@ void ServiceWorkerContextWrapper::StoreRegistrationUserData(
const StatusCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!context_core_) {
- RunSoon(base::Bind(callback, SERVICE_WORKER_ERROR_ABORT));
+ RunSoonFunctionNumber21(base::Bind(callback, SERVICE_WORKER_ERROR_ABORT));
return;
}
context_core_->storage()->StoreUserData(registration_id, origin.GetOrigin(),
@@ -644,7 +644,7 @@ void ServiceWorkerContextWrapper::ClearRegistrationUserData(
const StatusCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!context_core_) {
- RunSoon(base::Bind(callback, SERVICE_WORKER_ERROR_ABORT));
+ RunSoonFunctionNumber21(base::Bind(callback, SERVICE_WORKER_ERROR_ABORT));
return;
}
context_core_->storage()->ClearUserData(registration_id, keys, callback);
@@ -656,7 +656,7 @@ void ServiceWorkerContextWrapper::ClearRegistrationUserDataByKeyPrefixes(
const StatusCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!context_core_) {
- RunSoon(base::Bind(callback, SERVICE_WORKER_ERROR_ABORT));
+ RunSoonFunctionNumber21(base::Bind(callback, SERVICE_WORKER_ERROR_ABORT));
return;
}
context_core_->storage()->ClearUserDataByKeyPrefixes(registration_id,
@@ -668,7 +668,7 @@ void ServiceWorkerContextWrapper::GetUserDataForAllRegistrations(
const GetUserDataForAllRegistrationsCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!context_core_) {
- RunSoon(base::Bind(callback, std::vector<std::pair<int64_t, std::string>>(),
+ RunSoonFunctionNumber21(base::Bind(callback, std::vector<std::pair<int64_t, std::string>>(),
SERVICE_WORKER_ERROR_ABORT));
return;
}
@@ -680,7 +680,7 @@ void ServiceWorkerContextWrapper::GetUserDataForAllRegistrationsByKeyPrefix(
const GetUserDataForAllRegistrationsCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (!context_core_) {
- RunSoon(base::Bind(callback, std::vector<std::pair<int64_t, std::string>>(),
+ RunSoonFunctionNumber21(base::Bind(callback, std::vector<std::pair<int64_t, std::string>>(),
SERVICE_WORKER_ERROR_ABORT));
return;
}

Powered by Google App Engine
This is Rietveld 408576698