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

Side by Side Diff: remoting/host/client_session.h

Issue 399253002: CastExtension Impl for Chromoting Host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor fix Created 6 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef REMOTING_HOST_CLIENT_SESSION_H_ 5 #ifndef REMOTING_HOST_CLIENT_SESSION_H_
6 #define REMOTING_HOST_CLIENT_SESSION_H_ 6 #define REMOTING_HOST_CLIENT_SESSION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 12 matching lines...) Expand all
23 #include "remoting/protocol/clipboard_echo_filter.h" 23 #include "remoting/protocol/clipboard_echo_filter.h"
24 #include "remoting/protocol/clipboard_filter.h" 24 #include "remoting/protocol/clipboard_filter.h"
25 #include "remoting/protocol/clipboard_stub.h" 25 #include "remoting/protocol/clipboard_stub.h"
26 #include "remoting/protocol/connection_to_client.h" 26 #include "remoting/protocol/connection_to_client.h"
27 #include "remoting/protocol/host_stub.h" 27 #include "remoting/protocol/host_stub.h"
28 #include "remoting/protocol/input_event_tracker.h" 28 #include "remoting/protocol/input_event_tracker.h"
29 #include "remoting/protocol/input_filter.h" 29 #include "remoting/protocol/input_filter.h"
30 #include "remoting/protocol/input_stub.h" 30 #include "remoting/protocol/input_stub.h"
31 #include "remoting/protocol/pairing_registry.h" 31 #include "remoting/protocol/pairing_registry.h"
32 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" 32 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
33 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h"
33 34
34 namespace base { 35 namespace base {
35 class SingleThreadTaskRunner; 36 class SingleThreadTaskRunner;
36 } // namespace base 37 } // namespace base
37 38
38 namespace remoting { 39 namespace remoting {
39 40
40 class AudioEncoder; 41 class AudioEncoder;
41 class AudioScheduler; 42 class AudioScheduler;
42 class DesktopEnvironment; 43 class DesktopEnvironment;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 protocol::ConnectionToClient* connection() const { 154 protocol::ConnectionToClient* connection() const {
154 return connection_.get(); 155 return connection_.get();
155 } 156 }
156 157
157 bool is_authenticated() { return auth_input_filter_.enabled(); } 158 bool is_authenticated() { return auth_input_filter_.enabled(); }
158 159
159 const std::string* client_capabilities() const { 160 const std::string* client_capabilities() const {
160 return client_capabilities_.get(); 161 return client_capabilities_.get();
161 } 162 }
162 163
164 // Stops the VideoScheduler (which stops capturing, encoding and streaming)
165 // and passes a new webrtc::ScreenCapturer to the caller.
166 scoped_ptr<webrtc::ScreenCapturer> RequestScreenCapturer();
aiguha 2014/07/29 04:23:45 The actual implementation of this hook is in https
167
163 private: 168 private:
164 typedef ScopedVector<HostExtensionSession> HostExtensionSessionList; 169 typedef ScopedVector<HostExtensionSession> HostExtensionSessionList;
165 170
166 // Creates a proxy for sending clipboard events to the client. 171 // Creates a proxy for sending clipboard events to the client.
167 scoped_ptr<protocol::ClipboardStub> CreateClipboardProxy(); 172 scoped_ptr<protocol::ClipboardStub> CreateClipboardProxy();
168 173
169 // Creates an audio encoder for the specified configuration. 174 // Creates an audio encoder for the specified configuration.
170 static scoped_ptr<AudioEncoder> CreateAudioEncoder( 175 static scoped_ptr<AudioEncoder> CreateAudioEncoder(
171 const protocol::SessionConfig& config); 176 const protocol::SessionConfig& config);
172 177
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 265
261 // Host extension sessions, used to handle extension messages. 266 // Host extension sessions, used to handle extension messages.
262 HostExtensionSessionList extension_sessions_; 267 HostExtensionSessionList extension_sessions_;
263 268
264 DISALLOW_COPY_AND_ASSIGN(ClientSession); 269 DISALLOW_COPY_AND_ASSIGN(ClientSession);
265 }; 270 };
266 271
267 } // namespace remoting 272 } // namespace remoting
268 273
269 #endif // REMOTING_HOST_CLIENT_SESSION_H_ 274 #endif // REMOTING_HOST_CLIENT_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698