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

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: Rebased again Created 3 years, 5 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 639e259b21c7aaf8a45e13fc22bb2a4926c6e950..7a4fa0ecfa5e0bd3e63ffba8f00a281f9656dc85 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);
}
@@ -647,7 +647,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(
@@ -739,7 +739,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;
}
@@ -752,7 +752,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;
}
@@ -765,7 +765,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;
}
@@ -780,7 +780,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(),
@@ -793,7 +793,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);
@@ -804,7 +804,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;
}
@@ -816,7 +816,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