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

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

Issue 12678008: Reworked the plumbing required to pass the client resolution to the desktop resizer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
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"
(...skipping 21 matching lines...) Expand all
32 class Message; 32 class Message;
33 } // namespace IPC 33 } // namespace IPC
34 34
35 struct SerializedCapturedData; 35 struct SerializedCapturedData;
36 36
37 namespace remoting { 37 namespace remoting {
38 38
39 class AudioPacket; 39 class AudioPacket;
40 class ClientSession; 40 class ClientSession;
41 class DesktopSessionConnector; 41 class DesktopSessionConnector;
42 struct DesktopSessionParams;
43 struct DesktopSessionProxyTraits; 42 struct DesktopSessionProxyTraits;
44 class IpcAudioCapturer; 43 class IpcAudioCapturer;
45 class IpcVideoFrameCapturer; 44 class IpcVideoFrameCapturer;
45 struct ScreenResolution;
46 class SessionController; 46 class SessionController;
47 47
48 // DesktopSessionProxy is created by an owning DesktopEnvironment to route 48 // DesktopSessionProxy is created by an owning DesktopEnvironment to route
49 // requests from stubs to the DesktopSessionAgent instance through 49 // requests from stubs to the DesktopSessionAgent instance through
50 // the IPC channel. DesktopSessionProxy is owned both by the DesktopEnvironment 50 // the IPC channel. DesktopSessionProxy is owned both by the DesktopEnvironment
51 // and the stubs, since stubs can out-live their DesktopEnvironment. 51 // and the stubs, since stubs can out-live their DesktopEnvironment.
52 // 52 //
53 // DesktopSessionProxy objects are ref-counted but are always deleted on 53 // DesktopSessionProxy objects are ref-counted but are always deleted on
54 // the |caller_tast_runner_| thread. This makes it possible to continue 54 // the |caller_tast_runner_| thread. This makes it possible to continue
55 // to receive IPC messages after the ref-count has dropped to zero, until 55 // to receive IPC messages after the ref-count has dropped to zero, until
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // the |video_capture_task_runner_| thread. 115 // the |video_capture_task_runner_| thread.
116 void SetVideoCapturer( 116 void SetVideoCapturer(
117 const base::WeakPtr<IpcVideoFrameCapturer> video_capturer); 117 const base::WeakPtr<IpcVideoFrameCapturer> video_capturer);
118 118
119 // APIs used to implement the EventExecutor interface. 119 // APIs used to implement the EventExecutor interface.
120 void InjectClipboardEvent(const protocol::ClipboardEvent& event); 120 void InjectClipboardEvent(const protocol::ClipboardEvent& event);
121 void InjectKeyEvent(const protocol::KeyEvent& event); 121 void InjectKeyEvent(const protocol::KeyEvent& event);
122 void InjectMouseEvent(const protocol::MouseEvent& event); 122 void InjectMouseEvent(const protocol::MouseEvent& event);
123 void StartEventExecutor(scoped_ptr<protocol::ClipboardStub> client_clipboard); 123 void StartEventExecutor(scoped_ptr<protocol::ClipboardStub> client_clipboard);
124 124
125 // API used to implement the SessionController interface.
Jamie 2013/03/15 22:06:27 Nit: indent
alexeypa (please no reviews) 2013/03/15 22:32:12 This code was removed.
126 void SetScreenResolution(const ScreenResolution& resolution);
127
125 private: 128 private:
126 friend class base::DeleteHelper<DesktopSessionProxy>; 129 friend class base::DeleteHelper<DesktopSessionProxy>;
127 friend struct DesktopSessionProxyTraits; 130 friend struct DesktopSessionProxyTraits;
128 virtual ~DesktopSessionProxy(); 131 virtual ~DesktopSessionProxy();
129 132
130 // Returns a shared buffer from the list of known buffers. 133 // Returns a shared buffer from the list of known buffers.
131 scoped_refptr<media::SharedBuffer> GetSharedBuffer(int id); 134 scoped_refptr<media::SharedBuffer> GetSharedBuffer(int id);
132 135
133 // Handles AudioPacket notification from the desktop session agent. 136 // Handles AudioPacket notification from the desktop session agent.
134 void OnAudioPacket(const std::string& serialized_packet); 137 void OnAudioPacket(const std::string& serialized_packet);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 }; 211 };
209 212
210 // Destroys |DesktopSessionProxy| instances on the caller's thread. 213 // Destroys |DesktopSessionProxy| instances on the caller's thread.
211 struct DesktopSessionProxyTraits { 214 struct DesktopSessionProxyTraits {
212 static void Destruct(const DesktopSessionProxy* desktop_session_proxy); 215 static void Destruct(const DesktopSessionProxy* desktop_session_proxy);
213 }; 216 };
214 217
215 } // namespace remoting 218 } // namespace remoting
216 219
217 #endif // REMOTING_HOST_DESKTOP_SESSION_PROXY_H_ 220 #endif // REMOTING_HOST_DESKTOP_SESSION_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698