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

Side by Side Diff: third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/broadcastchannel/BroadcastChannel.h" 5 #include "modules/broadcastchannel/BroadcastChannel.h"
6 6
7 #include "bindings/core/v8/SerializedScriptValue.h" 7 #include "bindings/core/v8/SerializedScriptValue.h"
8 #include "core/dom/ExceptionCode.h" 8 #include "core/dom/ExceptionCode.h"
9 #include "core/events/EventQueue.h" 9 #include "core/events/EventQueue.h"
10 #include "core/events/MessageEvent.h" 10 #include "core/events/MessageEvent.h"
(...skipping 10 matching lines...) Expand all
21 // instances in the same thread this uses one BroadcastChannelService 21 // instances in the same thread this uses one BroadcastChannelService
22 // connection as basis for all connections to channels from the same thread. The 22 // connection as basis for all connections to channels from the same thread. The
23 // actual connections used to send/receive messages are then created using 23 // actual connections used to send/receive messages are then created using
24 // associated interfaces, ensuring proper message ordering. 24 // associated interfaces, ensuring proper message ordering.
25 mojom::blink::BroadcastChannelProviderPtr& getThreadSpecificProvider() { 25 mojom::blink::BroadcastChannelProviderPtr& getThreadSpecificProvider() {
26 DEFINE_THREAD_SAFE_STATIC_LOCAL( 26 DEFINE_THREAD_SAFE_STATIC_LOCAL(
27 ThreadSpecific<mojom::blink::BroadcastChannelProviderPtr>, provider, 27 ThreadSpecific<mojom::blink::BroadcastChannelProviderPtr>, provider,
28 new ThreadSpecific<mojom::blink::BroadcastChannelProviderPtr>); 28 new ThreadSpecific<mojom::blink::BroadcastChannelProviderPtr>);
29 if (!provider.isSet()) { 29 if (!provider.isSet()) {
30 Platform::current()->interfaceProvider()->getInterface( 30 Platform::current()->interfaceProvider()->getInterface(
31 mojo::GetProxy(&*provider)); 31 mojo::MakeRequest(&*provider));
32 } 32 }
33 return *provider; 33 return *provider;
34 } 34 }
35 35
36 } // namespace 36 } // namespace
37 37
38 // static 38 // static
39 BroadcastChannel* BroadcastChannel::create(ExecutionContext* executionContext, 39 BroadcastChannel* BroadcastChannel::create(ExecutionContext* executionContext,
40 const String& name, 40 const String& name,
41 ExceptionState& exceptionState) { 41 ExceptionState& exceptionState) {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 &remoteCientRequest); 149 &remoteCientRequest);
150 m_remoteClient.Bind(std::move(remoteClientInfo)); 150 m_remoteClient.Bind(std::move(remoteClientInfo));
151 m_remoteClient.set_connection_error_handler(convertToBaseCallback( 151 m_remoteClient.set_connection_error_handler(convertToBaseCallback(
152 WTF::bind(&BroadcastChannel::onError, wrapWeakPersistent(this)))); 152 WTF::bind(&BroadcastChannel::onError, wrapWeakPersistent(this))));
153 153
154 provider->ConnectToChannel(m_origin, m_name, std::move(localClientInfo), 154 provider->ConnectToChannel(m_origin, m_name, std::move(localClientInfo),
155 std::move(remoteCientRequest)); 155 std::move(remoteCientRequest));
156 } 156 }
157 157
158 } // namespace blink 158 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698