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

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

Issue 11470028: Move screen capturers to remoting/capturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/desktop_session_agent.cc ('k') | remoting/host/desktop_session_proxy.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_PROXY_H_ 5 #ifndef REMOTING_HOST_DESKTOP_SESSION_PROXY_H_
6 #define REMOTING_HOST_DESKTOP_SESSION_PROXY_H_ 6 #define REMOTING_HOST_DESKTOP_SESSION_PROXY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "ipc/ipc_listener.h" 13 #include "ipc/ipc_listener.h"
14 #include "ipc/ipc_platform_file.h" 14 #include "ipc/ipc_platform_file.h"
15 #include "remoting/base/shared_buffer.h" 15 #include "remoting/capturer/shared_buffer.h"
16 #include "remoting/host/video_frame_capturer.h" 16 #include "remoting/capturer/video_frame_capturer.h"
17 #include "remoting/proto/event.pb.h" 17 #include "remoting/proto/event.pb.h"
18 #include "remoting/protocol/clipboard_stub.h" 18 #include "remoting/protocol/clipboard_stub.h"
19 #include "third_party/skia/include/core/SkRegion.h" 19 #include "third_party/skia/include/core/SkRegion.h"
20 20
21 #if defined(OS_WIN) 21 #if defined(OS_WIN)
22 #include "base/win/scoped_handle.h" 22 #include "base/win/scoped_handle.h"
23 #endif 23 #endif
24 24
25 namespace base { 25 namespace base {
26 class SingleThreadTaskRunner; 26 class SingleThreadTaskRunner;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 IPC::PlatformFileForTransit handle, 92 IPC::PlatformFileForTransit handle,
93 uint32 size); 93 uint32 size);
94 94
95 // Drops a cached reference to the shared buffer. 95 // Drops a cached reference to the shared buffer.
96 void OnReleaseSharedBuffer(int id); 96 void OnReleaseSharedBuffer(int id);
97 97
98 // Handles CaptureCompleted notification from the desktop session agent. 98 // Handles CaptureCompleted notification from the desktop session agent.
99 void OnCaptureCompleted(const SerializedCapturedData& serialized_data); 99 void OnCaptureCompleted(const SerializedCapturedData& serialized_data);
100 100
101 // Handles CursorShapeChanged notification from the desktop session agent. 101 // Handles CursorShapeChanged notification from the desktop session agent.
102 void OnCursorShapeChanged(const std::string& serialized_cursor_shape); 102 void OnCursorShapeChanged(const MouseCursorShape& cursor_shape);
103 103
104 // Posted to |video_capture_task_runner_| to pass a captured video frame back 104 // Posted to |video_capture_task_runner_| to pass a captured video frame back
105 // to |video_capturer_|. 105 // to |video_capturer_|.
106 void PostCaptureCompleted(scoped_refptr<CaptureData> capture_data); 106 void PostCaptureCompleted(scoped_refptr<CaptureData> capture_data);
107 107
108 // Posted to |video_capture_task_runner_| to pass |cursor_shape| back to 108 // Posted to |video_capture_task_runner_| to pass |cursor_shape| back to
109 // |video_capturer_|. 109 // |video_capturer_|.
110 void PostCursorShape(scoped_ptr<protocol::CursorShapeInfo> cursor_shape); 110 void PostCursorShape(scoped_ptr<MouseCursorShape> cursor_shape);
111 111
112 // Handles InjectClipboardEvent request from the desktop integration process. 112 // Handles InjectClipboardEvent request from the desktop integration process.
113 void OnInjectClipboardEvent(const std::string& serialized_event); 113 void OnInjectClipboardEvent(const std::string& serialized_event);
114 114
115 // Sends a message to the desktop session agent. The message is silently 115 // Sends a message to the desktop session agent. The message is silently
116 // deleted if the channel is broken. 116 // deleted if the channel is broken.
117 void SendToDesktop(IPC::Message* message); 117 void SendToDesktop(IPC::Message* message);
118 118
119 // Task runner on which public methods of this class should be called (unless 119 // Task runner on which public methods of this class should be called (unless
120 // it is documented otherwise). 120 // it is documented otherwise).
(...skipping 20 matching lines...) Expand all
141 141
142 // Points to the video capturer receiving captured video frames. 142 // Points to the video capturer receiving captured video frames.
143 IpcVideoFrameCapturer* video_capturer_; 143 IpcVideoFrameCapturer* video_capturer_;
144 144
145 DISALLOW_COPY_AND_ASSIGN(DesktopSessionProxy); 145 DISALLOW_COPY_AND_ASSIGN(DesktopSessionProxy);
146 }; 146 };
147 147
148 } // namespace remoting 148 } // namespace remoting
149 149
150 #endif // REMOTING_HOST_DESKTOP_SESSION_PROXY_H_ 150 #endif // REMOTING_HOST_DESKTOP_SESSION_PROXY_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_session_agent.cc ('k') | remoting/host/desktop_session_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698