OLD | NEW |
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 "remoting/host/host_extension_session_manager.h" | 5 #include "remoting/host/host_extension_session_manager.h" |
6 | 6 |
7 #include "remoting/base/capabilities.h" | 7 #include "remoting/base/capabilities.h" |
8 #include "remoting/codec/video_encoder.h" | 8 #include "remoting/codec/video_encoder.h" |
9 #include "remoting/host/client_session_control.h" | 9 #include "remoting/host/client_session_control.h" |
10 #include "remoting/host/host_extension.h" | 10 #include "remoting/host/host_extension.h" |
11 #include "remoting/host/host_extension_session.h" | 11 #include "remoting/host/host_extension_session.h" |
12 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" | 12 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
13 namespace remoting { | 13 namespace remoting { |
14 | 14 |
15 HostExtensionSessionManager::HostExtensionSessionManager( | 15 HostExtensionSessionManager::HostExtensionSessionManager( |
16 const std::vector<HostExtension*>& extensions, | 16 const std::vector<HostExtension*>& extensions, |
17 ClientSessionControl* client_session_control) | 17 ClientSessionControl* client_session_control) |
18 : client_session_control_(client_session_control), | 18 : client_session_control_(client_session_control), |
19 client_stub_(NULL), | 19 client_stub_(nullptr), |
20 extensions_(extensions) { | 20 extensions_(extensions) { |
21 } | 21 } |
22 | 22 |
23 HostExtensionSessionManager::~HostExtensionSessionManager() { | 23 HostExtensionSessionManager::~HostExtensionSessionManager() { |
24 } | 24 } |
25 | 25 |
26 std::string HostExtensionSessionManager::GetCapabilities() const { | 26 std::string HostExtensionSessionManager::GetCapabilities() const { |
27 std::string capabilities; | 27 std::string capabilities; |
28 for (HostExtensions::const_iterator extension = extensions_.begin(); | 28 for (HostExtensions::const_iterator extension = extensions_.begin(); |
29 extension != extensions_.end(); ++extension) { | 29 extension != extensions_.end(); ++extension) { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 it != extension_sessions_.end(); ++it) { | 102 it != extension_sessions_.end(); ++it) { |
103 if ((*it)->OnExtensionMessage( | 103 if ((*it)->OnExtensionMessage( |
104 client_session_control_, client_stub_, message)) { | 104 client_session_control_, client_stub_, message)) { |
105 return true; | 105 return true; |
106 } | 106 } |
107 } | 107 } |
108 return false; | 108 return false; |
109 } | 109 } |
110 | 110 |
111 } // namespace remoting | 111 } // namespace remoting |
OLD | NEW |