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

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

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « remoting/host/chromoting_host.h ('k') | remoting/host/clipboard_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 92 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
93 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner, 93 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner,
94 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner, 94 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner,
95 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, 95 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
96 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, 96 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
97 scoped_ptr<protocol::ConnectionToClient> connection, 97 scoped_ptr<protocol::ConnectionToClient> connection,
98 DesktopEnvironmentFactory* desktop_environment_factory, 98 DesktopEnvironmentFactory* desktop_environment_factory,
99 const base::TimeDelta& max_duration, 99 const base::TimeDelta& max_duration,
100 scoped_refptr<protocol::PairingRegistry> pairing_registry, 100 scoped_refptr<protocol::PairingRegistry> pairing_registry,
101 const std::vector<HostExtension*>& extensions); 101 const std::vector<HostExtension*>& extensions);
102 virtual ~ClientSession(); 102 ~ClientSession() override;
103 103
104 // Returns the set of capabilities negotiated between client and host. 104 // Returns the set of capabilities negotiated between client and host.
105 const std::string& capabilities() const { return capabilities_; } 105 const std::string& capabilities() const { return capabilities_; }
106 106
107 // protocol::HostStub interface. 107 // protocol::HostStub interface.
108 virtual void NotifyClientResolution( 108 void NotifyClientResolution(
109 const protocol::ClientResolution& resolution) override; 109 const protocol::ClientResolution& resolution) override;
110 virtual void ControlVideo( 110 void ControlVideo(const protocol::VideoControl& video_control) override;
111 const protocol::VideoControl& video_control) override; 111 void ControlAudio(const protocol::AudioControl& audio_control) override;
112 virtual void ControlAudio( 112 void SetCapabilities(const protocol::Capabilities& capabilities) override;
113 const protocol::AudioControl& audio_control) override; 113 void RequestPairing(
114 virtual void SetCapabilities(
115 const protocol::Capabilities& capabilities) override;
116 virtual void RequestPairing(
117 const remoting::protocol::PairingRequest& pairing_request) override; 114 const remoting::protocol::PairingRequest& pairing_request) override;
118 virtual void DeliverClientMessage( 115 void DeliverClientMessage(const protocol::ExtensionMessage& message) override;
119 const protocol::ExtensionMessage& message) override;
120 116
121 // protocol::ConnectionToClient::EventHandler interface. 117 // protocol::ConnectionToClient::EventHandler interface.
122 virtual void OnConnectionAuthenticating( 118 void OnConnectionAuthenticating(
123 protocol::ConnectionToClient* connection) override; 119 protocol::ConnectionToClient* connection) override;
124 virtual void OnConnectionAuthenticated( 120 void OnConnectionAuthenticated(
125 protocol::ConnectionToClient* connection) override; 121 protocol::ConnectionToClient* connection) override;
126 virtual void OnConnectionChannelsConnected( 122 void OnConnectionChannelsConnected(
127 protocol::ConnectionToClient* connection) override; 123 protocol::ConnectionToClient* connection) override;
128 virtual void OnConnectionClosed(protocol::ConnectionToClient* connection, 124 void OnConnectionClosed(protocol::ConnectionToClient* connection,
129 protocol::ErrorCode error) override; 125 protocol::ErrorCode error) override;
130 virtual void OnSequenceNumberUpdated( 126 void OnSequenceNumberUpdated(protocol::ConnectionToClient* connection,
131 protocol::ConnectionToClient* connection, int64 sequence_number) override; 127 int64 sequence_number) override;
132 virtual void OnRouteChange( 128 void OnRouteChange(protocol::ConnectionToClient* connection,
133 protocol::ConnectionToClient* connection, 129 const std::string& channel_name,
134 const std::string& channel_name, 130 const protocol::TransportRoute& route) override;
135 const protocol::TransportRoute& route) override;
136 131
137 // ClientSessionControl interface. 132 // ClientSessionControl interface.
138 virtual const std::string& client_jid() const override; 133 const std::string& client_jid() const override;
139 virtual void DisconnectSession() override; 134 void DisconnectSession() override;
140 virtual void OnLocalMouseMoved( 135 void OnLocalMouseMoved(const webrtc::DesktopVector& position) override;
141 const webrtc::DesktopVector& position) override; 136 void SetDisableInputs(bool disable_inputs) override;
142 virtual void SetDisableInputs(bool disable_inputs) override; 137 void ResetVideoPipeline() override;
143 virtual void ResetVideoPipeline() override;
144 138
145 void SetGnubbyAuthHandlerForTesting(GnubbyAuthHandler* gnubby_auth_handler); 139 void SetGnubbyAuthHandlerForTesting(GnubbyAuthHandler* gnubby_auth_handler);
146 140
147 protocol::ConnectionToClient* connection() const { 141 protocol::ConnectionToClient* connection() const {
148 return connection_.get(); 142 return connection_.get();
149 } 143 }
150 144
151 bool is_authenticated() { return auth_input_filter_.enabled(); } 145 bool is_authenticated() { return auth_input_filter_.enabled(); }
152 146
153 const std::string* client_capabilities() const { 147 const std::string* client_capabilities() const {
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // Used to disable callbacks to |this| once DisconnectSession() has been 256 // Used to disable callbacks to |this| once DisconnectSession() has been
263 // called. 257 // called.
264 base::WeakPtrFactory<ClientSessionControl> weak_factory_; 258 base::WeakPtrFactory<ClientSessionControl> weak_factory_;
265 259
266 DISALLOW_COPY_AND_ASSIGN(ClientSession); 260 DISALLOW_COPY_AND_ASSIGN(ClientSession);
267 }; 261 };
268 262
269 } // namespace remoting 263 } // namespace remoting
270 264
271 #endif // REMOTING_HOST_CLIENT_SESSION_H_ 265 #endif // REMOTING_HOST_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host.h ('k') | remoting/host/clipboard_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698