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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. Created 3 years, 8 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 "modules/serviceworkers/ServiceWorkerRegistration.h" 5 #include "modules/serviceworkers/ServiceWorkerRegistration.h"
6 6
7 #include <memory>
8 #include <utility>
7 #include "bindings/core/v8/CallbackPromiseAdapter.h" 9 #include "bindings/core/v8/CallbackPromiseAdapter.h"
8 #include "bindings/core/v8/ScriptPromise.h" 10 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptState.h" 11 #include "bindings/core/v8/ScriptState.h"
10 #include "core/dom/DOMException.h" 12 #include "core/dom/DOMException.h"
11 #include "core/dom/ExceptionCode.h" 13 #include "core/dom/ExceptionCode.h"
12 #include "core/dom/ExecutionContext.h" 14 #include "core/dom/ExecutionContext.h"
13 #include "core/events/Event.h" 15 #include "core/events/Event.h"
14 #include "modules/EventTargetModules.h" 16 #include "modules/EventTargetModules.h"
15 #include "modules/serviceworkers/ServiceWorkerContainerClient.h" 17 #include "modules/serviceworkers/ServiceWorkerContainerClient.h"
16 #include "modules/serviceworkers/ServiceWorkerError.h" 18 #include "modules/serviceworkers/ServiceWorkerError.h"
19 #include "platform/wtf/PtrUtil.h"
17 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" 20 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h"
18 #include "wtf/PtrUtil.h"
19 #include <memory>
20 #include <utility>
21 21
22 namespace blink { 22 namespace blink {
23 23
24 ServiceWorkerRegistration* ServiceWorkerRegistration::Take( 24 ServiceWorkerRegistration* ServiceWorkerRegistration::Take(
25 ScriptPromiseResolver* resolver, 25 ScriptPromiseResolver* resolver,
26 std::unique_ptr<WebServiceWorkerRegistration::Handle> handle) { 26 std::unique_ptr<WebServiceWorkerRegistration::Handle> handle) {
27 return GetOrCreate(resolver->GetExecutionContext(), std::move(handle)); 27 return GetOrCreate(resolver->GetExecutionContext(), std::move(handle));
28 } 28 }
29 29
30 bool ServiceWorkerRegistration::HasPendingActivity() const { 30 bool ServiceWorkerRegistration::HasPendingActivity() const {
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 160 }
161 161
162 void ServiceWorkerRegistration::ContextDestroyed(ExecutionContext*) { 162 void ServiceWorkerRegistration::ContextDestroyed(ExecutionContext*) {
163 if (stopped_) 163 if (stopped_)
164 return; 164 return;
165 stopped_ = true; 165 stopped_ = true;
166 handle_->Registration()->ProxyStopped(); 166 handle_->Registration()->ProxyStopped();
167 } 167 }
168 168
169 } // namespace blink 169 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698