OLD | NEW |
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/serialization/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" |
11 #include "platform/mojo/MojoHelper.h" | 11 #include "platform/mojo/MojoHelper.h" |
12 #include "platform/wtf/Functional.h" | 12 #include "platform/wtf/Functional.h" |
13 #include "public/platform/InterfaceProvider.h" | 13 #include "public/platform/InterfaceProvider.h" |
14 #include "public/platform/Platform.h" | 14 #include "public/platform/Platform.h" |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // browser. | 137 // browser. |
138 auto remote_cient_request = mojo::MakeRequest(&remote_client_); | 138 auto remote_cient_request = mojo::MakeRequest(&remote_client_); |
139 remote_client_.set_connection_error_handler(ConvertToBaseCallback( | 139 remote_client_.set_connection_error_handler(ConvertToBaseCallback( |
140 WTF::Bind(&BroadcastChannel::OnError, WrapWeakPersistent(this)))); | 140 WTF::Bind(&BroadcastChannel::OnError, WrapWeakPersistent(this)))); |
141 | 141 |
142 provider->ConnectToChannel(origin_, name_, std::move(local_client_info), | 142 provider->ConnectToChannel(origin_, name_, std::move(local_client_info), |
143 std::move(remote_cient_request)); | 143 std::move(remote_cient_request)); |
144 } | 144 } |
145 | 145 |
146 } // namespace blink | 146 } // namespace blink |
OLD | NEW |