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

Side by Side Diff: content/browser/service_worker/service_worker_unregister_job.cc

Issue 1259213002: Move Service Worker %2f path validation logic from browser into Blink (1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix remaining nits. Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/service_worker/service_worker_unregister_job.h" 5 #include "content/browser/service_worker/service_worker_unregister_job.h"
6 6
7 #include "base/memory/weak_ptr.h" 7 #include "base/memory/weak_ptr.h"
8 #include "content/browser/service_worker/service_worker_context_core.h" 8 #include "content/browser/service_worker/service_worker_context_core.h"
9 #include "content/browser/service_worker/service_worker_job_coordinator.h" 9 #include "content/browser/service_worker/service_worker_job_coordinator.h"
10 #include "content/browser/service_worker/service_worker_registration.h" 10 #include "content/browser/service_worker/service_worker_registration.h"
11 #include "content/browser/service_worker/service_worker_storage.h" 11 #include "content/browser/service_worker/service_worker_storage.h"
12 #include "content/browser/service_worker/service_worker_utils.h"
13 #include "content/browser/service_worker/service_worker_version.h" 12 #include "content/browser/service_worker/service_worker_version.h"
13 #include "content/common/service_worker/service_worker_utils.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 typedef ServiceWorkerRegisterJobBase::RegistrationJobType RegistrationJobType; 17 typedef ServiceWorkerRegisterJobBase::RegistrationJobType RegistrationJobType;
18 18
19 ServiceWorkerUnregisterJob::ServiceWorkerUnregisterJob( 19 ServiceWorkerUnregisterJob::ServiceWorkerUnregisterJob(
20 base::WeakPtr<ServiceWorkerContextCore> context, 20 base::WeakPtr<ServiceWorkerContextCore> context,
21 const GURL& pattern) 21 const GURL& pattern)
22 : context_(context), 22 : context_(context),
23 pattern_(pattern), 23 pattern_(pattern),
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 DCHECK(!is_promise_resolved_); 99 DCHECK(!is_promise_resolved_);
100 is_promise_resolved_ = true; 100 is_promise_resolved_ = true;
101 for (std::vector<UnregistrationCallback>::iterator it = callbacks_.begin(); 101 for (std::vector<UnregistrationCallback>::iterator it = callbacks_.begin();
102 it != callbacks_.end(); 102 it != callbacks_.end();
103 ++it) { 103 ++it) {
104 it->Run(registration_id, status); 104 it->Run(registration_id, status);
105 } 105 }
106 } 106 }
107 107
108 } // namespace content 108 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698