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

Side by Side Diff: remoting/host/cast_extension_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/cast_extension.h ('k') | remoting/host/cast_extension_session.cc » ('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 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 #ifndef REMOTING_HOST_CAST_EXTENSION_SESSION_H_ 5 #ifndef REMOTING_HOST_CAST_EXTENSION_SESSION_H_
6 #define REMOTING_HOST_CAST_EXTENSION_SESSION_H_ 6 #define REMOTING_HOST_CAST_EXTENSION_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 26 matching lines...) Expand all
37 37
38 namespace protocol { 38 namespace protocol {
39 struct NetworkSettings; 39 struct NetworkSettings;
40 } // namespace protocol 40 } // namespace protocol
41 41
42 // A HostExtensionSession implementation that enables WebRTC support using 42 // A HostExtensionSession implementation that enables WebRTC support using
43 // the PeerConnection native API. 43 // the PeerConnection native API.
44 class CastExtensionSession : public HostExtensionSession, 44 class CastExtensionSession : public HostExtensionSession,
45 public webrtc::PeerConnectionObserver { 45 public webrtc::PeerConnectionObserver {
46 public: 46 public:
47 virtual ~CastExtensionSession(); 47 ~CastExtensionSession() override;
48 48
49 // Creates and returns a CastExtensionSession object, after performing 49 // Creates and returns a CastExtensionSession object, after performing
50 // initialization steps on it. The caller must take ownership of the returned 50 // initialization steps on it. The caller must take ownership of the returned
51 // object. 51 // object.
52 static scoped_ptr<CastExtensionSession> Create( 52 static scoped_ptr<CastExtensionSession> Create(
53 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, 53 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
54 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, 54 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter,
55 const protocol::NetworkSettings& network_settings, 55 const protocol::NetworkSettings& network_settings,
56 ClientSessionControl* client_session_control, 56 ClientSessionControl* client_session_control,
57 protocol::ClientStub* client_stub); 57 protocol::ClientStub* client_stub);
58 58
59 // Called by webrtc::CreateSessionDescriptionObserver implementation. 59 // Called by webrtc::CreateSessionDescriptionObserver implementation.
60 void OnCreateSessionDescription(webrtc::SessionDescriptionInterface* desc); 60 void OnCreateSessionDescription(webrtc::SessionDescriptionInterface* desc);
61 void OnCreateSessionDescriptionFailure(const std::string& error); 61 void OnCreateSessionDescriptionFailure(const std::string& error);
62 62
63 // HostExtensionSession interface. 63 // HostExtensionSession interface.
64 virtual void OnCreateVideoCapturer( 64 void OnCreateVideoCapturer(
65 scoped_ptr<webrtc::DesktopCapturer>* capturer) override; 65 scoped_ptr<webrtc::DesktopCapturer>* capturer) override;
66 virtual bool ModifiesVideoPipeline() const override; 66 bool ModifiesVideoPipeline() const override;
67 virtual bool OnExtensionMessage( 67 bool OnExtensionMessage(ClientSessionControl* client_session_control,
68 ClientSessionControl* client_session_control, 68 protocol::ClientStub* client_stub,
69 protocol::ClientStub* client_stub, 69 const protocol::ExtensionMessage& message) override;
70 const protocol::ExtensionMessage& message) override;
71 70
72 // webrtc::PeerConnectionObserver interface. 71 // webrtc::PeerConnectionObserver interface.
73 virtual void OnError() override; 72 void OnError() override;
74 virtual void OnSignalingChange( 73 void OnSignalingChange(
75 webrtc::PeerConnectionInterface::SignalingState new_state) override; 74 webrtc::PeerConnectionInterface::SignalingState new_state) override;
76 virtual void OnStateChange( 75 void OnStateChange(
77 webrtc::PeerConnectionObserver::StateType state_changed) override; 76 webrtc::PeerConnectionObserver::StateType state_changed) override;
78 virtual void OnAddStream(webrtc::MediaStreamInterface* stream) override; 77 void OnAddStream(webrtc::MediaStreamInterface* stream) override;
79 virtual void OnRemoveStream(webrtc::MediaStreamInterface* stream) override; 78 void OnRemoveStream(webrtc::MediaStreamInterface* stream) override;
80 virtual void OnDataChannel( 79 void OnDataChannel(webrtc::DataChannelInterface* data_channel) override;
81 webrtc::DataChannelInterface* data_channel) override; 80 void OnRenegotiationNeeded() override;
82 virtual void OnRenegotiationNeeded() override; 81 void OnIceConnectionChange(
83 virtual void OnIceConnectionChange(
84 webrtc::PeerConnectionInterface::IceConnectionState new_state) override; 82 webrtc::PeerConnectionInterface::IceConnectionState new_state) override;
85 virtual void OnIceGatheringChange( 83 void OnIceGatheringChange(
86 webrtc::PeerConnectionInterface::IceGatheringState new_state) override; 84 webrtc::PeerConnectionInterface::IceGatheringState new_state) override;
87 virtual void OnIceCandidate( 85 void OnIceCandidate(const webrtc::IceCandidateInterface* candidate) override;
88 const webrtc::IceCandidateInterface* candidate) override; 86 void OnIceComplete() override;
89 virtual void OnIceComplete() override;
90 87
91 private: 88 private:
92 CastExtensionSession( 89 CastExtensionSession(
93 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, 90 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
94 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, 91 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter,
95 const protocol::NetworkSettings& network_settings, 92 const protocol::NetworkSettings& network_settings,
96 ClientSessionControl* client_session_control, 93 ClientSessionControl* client_session_control,
97 protocol::ClientStub* client_stub); 94 protocol::ClientStub* client_stub);
98 95
99 // Parses |message| for a Session Description and sets the remote 96 // Parses |message| for a Session Description and sets the remote
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 233
237 // Worker thread that is wrapped to create |worker_thread_wrapper_|. 234 // Worker thread that is wrapped to create |worker_thread_wrapper_|.
238 base::Thread worker_thread_; 235 base::Thread worker_thread_;
239 236
240 DISALLOW_COPY_AND_ASSIGN(CastExtensionSession); 237 DISALLOW_COPY_AND_ASSIGN(CastExtensionSession);
241 }; 238 };
242 239
243 } // namespace remoting 240 } // namespace remoting
244 241
245 #endif // REMOTING_HOST_CAST_EXTENSION_SESSION_H_ 242 #endif // REMOTING_HOST_CAST_EXTENSION_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/host/cast_extension.h ('k') | remoting/host/cast_extension_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698