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

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

Issue 398873005: Preparations for Cast Host Extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unnecessary getter methods 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 protocol::ConnectionToClient* connection() const { 159 protocol::ConnectionToClient* connection() const {
159 return connection_.get(); 160 return connection_.get();
160 } 161 }
161 162
162 bool is_authenticated() { return auth_input_filter_.enabled(); } 163 bool is_authenticated() { return auth_input_filter_.enabled(); }
163 164
164 const std::string* client_capabilities() const { 165 const std::string* client_capabilities() const {
165 return client_capabilities_.get(); 166 return client_capabilities_.get();
166 } 167 }
167 168
169 // Stops the VideoScheduler (which stops capturing, encoding and streaming)
170 // and passes a new webrtc::ScreenCapturer to the caller.
171 scoped_ptr<webrtc::ScreenCapturer> RequestScreenCapturer();
Wez 2014/08/01 01:14:14 We don't need this with the New Shiny OnCreateVide
172
168 private: 173 private:
169 typedef ScopedVector<HostExtensionSession> HostExtensionSessionList; 174 typedef ScopedVector<HostExtensionSession> HostExtensionSessionList;
170 175
171 // Creates a proxy for sending clipboard events to the client. 176 // Creates a proxy for sending clipboard events to the client.
172 scoped_ptr<protocol::ClipboardStub> CreateClipboardProxy(); 177 scoped_ptr<protocol::ClipboardStub> CreateClipboardProxy();
173 178
174 // Creates an audio encoder for the specified configuration. 179 // Creates an audio encoder for the specified configuration.
175 static scoped_ptr<AudioEncoder> CreateAudioEncoder( 180 static scoped_ptr<AudioEncoder> CreateAudioEncoder(
176 const protocol::SessionConfig& config); 181 const protocol::SessionConfig& config);
177 182
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 270
266 // Host extension sessions, used to handle extension messages. 271 // Host extension sessions, used to handle extension messages.
267 HostExtensionSessionList extension_sessions_; 272 HostExtensionSessionList extension_sessions_;
268 273
269 DISALLOW_COPY_AND_ASSIGN(ClientSession); 274 DISALLOW_COPY_AND_ASSIGN(ClientSession);
270 }; 275 };
271 276
272 } // namespace remoting 277 } // namespace remoting
273 278
274 #endif // REMOTING_HOST_CLIENT_SESSION_H_ 279 #endif // REMOTING_HOST_CLIENT_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698