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

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

Issue 628753002: replace OVERRIDE and FINAL with override and final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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/desktop_resizer_win.cc ('k') | remoting/host/desktop_session_agent.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 (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_DESKTOP_SESSION_AGENT_H_ 5 #ifndef REMOTING_HOST_DESKTOP_SESSION_AGENT_H_
6 #define REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ 6 #define REMOTING_HOST_DESKTOP_SESSION_AGENT_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 }; 64 };
65 65
66 DesktopSessionAgent( 66 DesktopSessionAgent(
67 scoped_refptr<AutoThreadTaskRunner> audio_capture_task_runner, 67 scoped_refptr<AutoThreadTaskRunner> audio_capture_task_runner,
68 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, 68 scoped_refptr<AutoThreadTaskRunner> caller_task_runner,
69 scoped_refptr<AutoThreadTaskRunner> input_task_runner, 69 scoped_refptr<AutoThreadTaskRunner> input_task_runner,
70 scoped_refptr<AutoThreadTaskRunner> io_task_runner, 70 scoped_refptr<AutoThreadTaskRunner> io_task_runner,
71 scoped_refptr<AutoThreadTaskRunner> video_capture_task_runner); 71 scoped_refptr<AutoThreadTaskRunner> video_capture_task_runner);
72 72
73 // IPC::Listener implementation. 73 // IPC::Listener implementation.
74 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 74 virtual bool OnMessageReceived(const IPC::Message& message) override;
75 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 75 virtual void OnChannelConnected(int32 peer_pid) override;
76 virtual void OnChannelError() OVERRIDE; 76 virtual void OnChannelError() override;
77 77
78 // webrtc::DesktopCapturer::Callback implementation. 78 // webrtc::DesktopCapturer::Callback implementation.
79 virtual webrtc::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE; 79 virtual webrtc::SharedMemory* CreateSharedMemory(size_t size) override;
80 virtual void OnCaptureCompleted(webrtc::DesktopFrame* frame) OVERRIDE; 80 virtual void OnCaptureCompleted(webrtc::DesktopFrame* frame) override;
81 81
82 // webrtc::MouseCursorMonitor::Callback implementation. 82 // webrtc::MouseCursorMonitor::Callback implementation.
83 virtual void OnMouseCursor(webrtc::MouseCursor* cursor) OVERRIDE; 83 virtual void OnMouseCursor(webrtc::MouseCursor* cursor) override;
84 virtual void OnMouseCursorPosition( 84 virtual void OnMouseCursorPosition(
85 webrtc::MouseCursorMonitor::CursorState state, 85 webrtc::MouseCursorMonitor::CursorState state,
86 const webrtc::DesktopVector& position) OVERRIDE; 86 const webrtc::DesktopVector& position) override;
87 87
88 // Forwards a local clipboard event though the IPC channel to the network 88 // Forwards a local clipboard event though the IPC channel to the network
89 // process. 89 // process.
90 void InjectClipboardEvent(const protocol::ClipboardEvent& event); 90 void InjectClipboardEvent(const protocol::ClipboardEvent& event);
91 91
92 // Forwards an audio packet though the IPC channel to the network process. 92 // Forwards an audio packet though the IPC channel to the network process.
93 void ProcessAudioPacket(scoped_ptr<AudioPacket> packet); 93 void ProcessAudioPacket(scoped_ptr<AudioPacket> packet);
94 94
95 // Creates desktop integration components and a connected IPC channel to be 95 // Creates desktop integration components and a connected IPC channel to be
96 // used to access them. The client end of the channel is returned in 96 // used to access them. The client end of the channel is returned in
97 // the variable pointed by |desktop_pipe_out|. 97 // the variable pointed by |desktop_pipe_out|.
98 bool Start(const base::WeakPtr<Delegate>& delegate, 98 bool Start(const base::WeakPtr<Delegate>& delegate,
99 IPC::PlatformFileForTransit* desktop_pipe_out); 99 IPC::PlatformFileForTransit* desktop_pipe_out);
100 100
101 // Stops the agent asynchronously. 101 // Stops the agent asynchronously.
102 void Stop(); 102 void Stop();
103 103
104 protected: 104 protected:
105 friend class base::RefCountedThreadSafe<DesktopSessionAgent>; 105 friend class base::RefCountedThreadSafe<DesktopSessionAgent>;
106 106
107 virtual ~DesktopSessionAgent(); 107 virtual ~DesktopSessionAgent();
108 108
109 // ClientSessionControl interface. 109 // ClientSessionControl interface.
110 virtual const std::string& client_jid() const OVERRIDE; 110 virtual const std::string& client_jid() const override;
111 virtual void DisconnectSession() OVERRIDE; 111 virtual void DisconnectSession() override;
112 virtual void OnLocalMouseMoved( 112 virtual void OnLocalMouseMoved(
113 const webrtc::DesktopVector& position) OVERRIDE; 113 const webrtc::DesktopVector& position) override;
114 virtual void SetDisableInputs(bool disable_inputs) OVERRIDE; 114 virtual void SetDisableInputs(bool disable_inputs) override;
115 virtual void ResetVideoPipeline() OVERRIDE; 115 virtual void ResetVideoPipeline() override;
116 116
117 // Handles StartSessionAgent request from the client. 117 // Handles StartSessionAgent request from the client.
118 void OnStartSessionAgent(const std::string& authenticated_jid, 118 void OnStartSessionAgent(const std::string& authenticated_jid,
119 const ScreenResolution& resolution, 119 const ScreenResolution& resolution,
120 bool virtual_terminal); 120 bool virtual_terminal);
121 121
122 // Handles CaptureFrame requests from the client. 122 // Handles CaptureFrame requests from the client.
123 void OnCaptureFrame(); 123 void OnCaptureFrame();
124 124
125 // Handles SharedBufferCreated notification from the client. 125 // Handles SharedBufferCreated notification from the client.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 // Used to disable callbacks to |this|. 228 // Used to disable callbacks to |this|.
229 base::WeakPtrFactory<DesktopSessionAgent> weak_factory_; 229 base::WeakPtrFactory<DesktopSessionAgent> weak_factory_;
230 230
231 DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); 231 DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent);
232 }; 232 };
233 233
234 } // namespace remoting 234 } // namespace remoting
235 235
236 #endif // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ 236 #endif // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_resizer_win.cc ('k') | remoting/host/desktop_session_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698