OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "content/renderer/presentation/presentation_connection_proxy.h" | 5 #include "content/renderer/presentation/presentation_connection_proxy.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/public/common/presentation_session.h" | 8 #include "content/public/common/presentation_info.h" |
9 #include "content/renderer/presentation/presentation_dispatcher.h" | 9 #include "content/renderer/presentation/presentation_dispatcher.h" |
10 #include "third_party/WebKit/public/platform/WebString.h" | 10 #include "third_party/WebKit/public/platform/WebString.h" |
11 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nConnection.h" | 11 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nConnection.h" |
12 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nController.h" | 12 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nController.h" |
13 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nSessionInfo.h" | 13 #include "third_party/WebKit/public/platform/modules/presentation/WebPresentatio
nInfo.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 PresentationConnectionProxy::PresentationConnectionProxy( | 17 PresentationConnectionProxy::PresentationConnectionProxy( |
18 blink::WebPresentationConnection* source_connection) | 18 blink::WebPresentationConnection* source_connection) |
19 : binding_(this), | 19 : binding_(this), |
20 target_connection_ptr_(nullptr), | 20 target_connection_ptr_(nullptr), |
21 source_connection_(source_connection) { | 21 source_connection_(source_connection) { |
22 DCHECK(source_connection_); | 22 DCHECK(source_connection_); |
23 } | 23 } |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 blink::mojom::PresentationConnectionPtr controller_connection_ptr) { | 105 blink::mojom::PresentationConnectionPtr controller_connection_ptr) { |
106 DCHECK(!target_connection_ptr_); | 106 DCHECK(!target_connection_ptr_); |
107 target_connection_ptr_ = std::move(controller_connection_ptr); | 107 target_connection_ptr_ = std::move(controller_connection_ptr); |
108 target_connection_ptr_->DidChangeState( | 108 target_connection_ptr_->DidChangeState( |
109 content::PRESENTATION_CONNECTION_STATE_CONNECTED); | 109 content::PRESENTATION_CONNECTION_STATE_CONNECTED); |
110 | 110 |
111 DidChangeState(content::PRESENTATION_CONNECTION_STATE_CONNECTED); | 111 DidChangeState(content::PRESENTATION_CONNECTION_STATE_CONNECTED); |
112 } | 112 } |
113 | 113 |
114 } // namespace content | 114 } // namespace content |
OLD | NEW |