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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClients.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/ServiceWorkerClients.h" 5 #include "modules/serviceworkers/ServiceWorkerClients.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/ScriptPromiseResolver.h" 10 #include "bindings/core/v8/ScriptPromiseResolver.h"
9 #include "core/dom/DOMException.h" 11 #include "core/dom/DOMException.h"
10 #include "core/dom/ExceptionCode.h" 12 #include "core/dom/ExceptionCode.h"
11 #include "core/workers/WorkerGlobalScope.h" 13 #include "core/workers/WorkerGlobalScope.h"
12 #include "core/workers/WorkerLocation.h" 14 #include "core/workers/WorkerLocation.h"
13 #include "modules/serviceworkers/ServiceWorkerError.h" 15 #include "modules/serviceworkers/ServiceWorkerError.h"
14 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 16 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
15 #include "modules/serviceworkers/ServiceWorkerWindowClient.h" 17 #include "modules/serviceworkers/ServiceWorkerWindowClient.h"
16 #include "modules/serviceworkers/ServiceWorkerWindowClientCallback.h" 18 #include "modules/serviceworkers/ServiceWorkerWindowClientCallback.h"
19 #include "platform/wtf/PtrUtil.h"
20 #include "platform/wtf/RefPtr.h"
21 #include "platform/wtf/Vector.h"
17 #include "public/platform/modules/serviceworker/WebServiceWorkerClientQueryOptio ns.h" 22 #include "public/platform/modules/serviceworker/WebServiceWorkerClientQueryOptio ns.h"
18 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h" 23 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h"
19 #include "wtf/PtrUtil.h"
20 #include "wtf/RefPtr.h"
21 #include "wtf/Vector.h"
22 #include <memory>
23 #include <utility>
24 24
25 namespace blink { 25 namespace blink {
26 26
27 namespace { 27 namespace {
28 28
29 class ClientArray { 29 class ClientArray {
30 public: 30 public:
31 using WebType = const WebServiceWorkerClientsInfo&; 31 using WebType = const WebServiceWorkerClientsInfo&;
32 static HeapVector<Member<ServiceWorkerClient>> Take( 32 static HeapVector<Member<ServiceWorkerClient>> Take(
33 ScriptPromiseResolver*, 33 ScriptPromiseResolver*,
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 return promise; 183 return promise;
184 } 184 }
185 context->ConsumeWindowInteraction(); 185 context->ConsumeWindowInteraction();
186 186
187 ServiceWorkerGlobalScopeClient::From(context)->OpenWindow( 187 ServiceWorkerGlobalScopeClient::From(context)->OpenWindow(
188 parsed_url, WTF::MakeUnique<NavigateClientCallback>(resolver)); 188 parsed_url, WTF::MakeUnique<NavigateClientCallback>(resolver));
189 return promise; 189 return promise;
190 } 190 }
191 191
192 } // namespace blink 192 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698