OLD | NEW |
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 <list> | 8 #include <list> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "ipc/ipc_listener.h" | 16 #include "ipc/ipc_listener.h" |
17 #include "ipc/ipc_platform_file.h" | 17 #include "ipc/ipc_platform_file.h" |
18 #include "remoting/base/shared_buffer.h" | 18 #include "remoting/capturer/shared_buffer.h" |
19 #include "remoting/base/shared_buffer_factory.h" | 19 #include "remoting/capturer/shared_buffer_factory.h" |
20 #include "remoting/host/video_frame_capturer.h" | 20 #include "remoting/capturer/video_frame_capturer.h" |
21 #include "remoting/protocol/clipboard_stub.h" | 21 #include "remoting/protocol/clipboard_stub.h" |
22 #include "third_party/skia/include/core/SkRect.h" | 22 #include "third_party/skia/include/core/SkRect.h" |
23 | 23 |
24 namespace IPC { | 24 namespace IPC { |
25 class ChannelProxy; | 25 class ChannelProxy; |
26 class Message; | 26 class Message; |
27 } // namespace IPC | 27 } // namespace IPC |
28 | 28 |
29 namespace remoting { | 29 namespace remoting { |
30 | 30 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual void OnChannelError() OVERRIDE; | 63 virtual void OnChannelError() OVERRIDE; |
64 | 64 |
65 // SharedBufferFactory implementation. | 65 // SharedBufferFactory implementation. |
66 virtual scoped_refptr<SharedBuffer> CreateSharedBuffer(uint32 size) OVERRIDE; | 66 virtual scoped_refptr<SharedBuffer> CreateSharedBuffer(uint32 size) OVERRIDE; |
67 virtual void ReleaseSharedBuffer(scoped_refptr<SharedBuffer> buffer) OVERRIDE; | 67 virtual void ReleaseSharedBuffer(scoped_refptr<SharedBuffer> buffer) OVERRIDE; |
68 | 68 |
69 // VideoFrameCapturer::Delegate implementation. | 69 // VideoFrameCapturer::Delegate implementation. |
70 virtual void OnCaptureCompleted( | 70 virtual void OnCaptureCompleted( |
71 scoped_refptr<CaptureData> capture_data) OVERRIDE; | 71 scoped_refptr<CaptureData> capture_data) OVERRIDE; |
72 virtual void OnCursorShapeChanged( | 72 virtual void OnCursorShapeChanged( |
73 scoped_ptr<protocol::CursorShapeInfo> cursor_shape) OVERRIDE; | 73 const MouseCursorShape& cursor_shape) OVERRIDE; |
74 | 74 |
75 // Forwards a local clipboard event though the IPC channel to the network | 75 // Forwards a local clipboard event though the IPC channel to the network |
76 // process. | 76 // process. |
77 void InjectClipboardEvent(const protocol::ClipboardEvent& event); | 77 void InjectClipboardEvent(const protocol::ClipboardEvent& event); |
78 | 78 |
79 // Creates desktop integration components and a connected IPC channel to be | 79 // Creates desktop integration components and a connected IPC channel to be |
80 // used to access them. The client end of the channel is returned in | 80 // used to access them. The client end of the channel is returned in |
81 // the variable pointed by |desktop_pipe_out|. | 81 // the variable pointed by |desktop_pipe_out|. |
82 bool Start(const base::WeakPtr<Delegate>& delegate, | 82 bool Start(const base::WeakPtr<Delegate>& delegate, |
83 IPC::PlatformFileForTransit* desktop_pipe_out); | 83 IPC::PlatformFileForTransit* desktop_pipe_out); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 // Captures the screen. | 180 // Captures the screen. |
181 scoped_ptr<VideoFrameCapturer> video_capturer_; | 181 scoped_ptr<VideoFrameCapturer> video_capturer_; |
182 | 182 |
183 DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); | 183 DISALLOW_COPY_AND_ASSIGN(DesktopSessionAgent); |
184 }; | 184 }; |
185 | 185 |
186 } // namespace remoting | 186 } // namespace remoting |
187 | 187 |
188 #endif // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ | 188 #endif // REMOTING_HOST_DESKTOP_SESSION_AGENT_H_ |
OLD | NEW |