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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.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/ServiceWorkerClient.h" 5 #include "modules/serviceworkers/ServiceWorkerClient.h"
6 #include "modules/serviceworkers/ServiceWorkerWindowClient.h" 6 #include "modules/serviceworkers/ServiceWorkerWindowClient.h"
7 7
8 #include <memory> 8 #include <memory>
9 #include "bindings/core/v8/CallbackPromiseAdapter.h" 9 #include "bindings/core/v8/CallbackPromiseAdapter.h"
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
11 #include "bindings/core/v8/ScriptState.h" 11 #include "bindings/core/v8/ScriptState.h"
12 #include "bindings/core/v8/SerializedScriptValue.h" 12 #include "bindings/core/v8/SerializedScriptValue.h"
13 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 13 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
14 #include "platform/wtf/RefPtr.h"
14 #include "public/platform/WebString.h" 15 #include "public/platform/WebString.h"
15 #include "wtf/RefPtr.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 ServiceWorkerClient* ServiceWorkerClient::Take( 19 ServiceWorkerClient* ServiceWorkerClient::Take(
20 ScriptPromiseResolver*, 20 ScriptPromiseResolver*,
21 std::unique_ptr<WebServiceWorkerClientInfo> web_client) { 21 std::unique_ptr<WebServiceWorkerClientInfo> web_client) {
22 if (!web_client) 22 if (!web_client)
23 return nullptr; 23 return nullptr;
24 24
25 switch (web_client->client_type) { 25 switch (web_client->client_type) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 return; 76 return;
77 77
78 WebString message_string = message->ToWireString(); 78 WebString message_string = message->ToWireString();
79 WebMessagePortChannelArray web_channels = 79 WebMessagePortChannelArray web_channels =
80 MessagePort::ToWebMessagePortChannelArray(std::move(channels)); 80 MessagePort::ToWebMessagePortChannelArray(std::move(channels));
81 ServiceWorkerGlobalScopeClient::From(context)->PostMessageToClient( 81 ServiceWorkerGlobalScopeClient::From(context)->PostMessageToClient(
82 uuid_, message_string, std::move(web_channels)); 82 uuid_, message_string, std::move(web_channels));
83 } 83 }
84 84
85 } // namespace blink 85 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698