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

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

Issue 12545026: ResizingHostObserver is created by the desktop environment together with other stubs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback & rebased 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
« no previous file with comments | « remoting/host/desktop_process_unittest.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"
(...skipping 25 matching lines...) Expand all
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; 42 struct DesktopSessionParams;
43 struct DesktopSessionProxyTraits; 43 struct DesktopSessionProxyTraits;
44 class IpcAudioCapturer; 44 class IpcAudioCapturer;
45 class IpcVideoFrameCapturer; 45 class IpcVideoFrameCapturer;
46 class SessionController;
46 47
47 // DesktopSessionProxy is created by an owning DesktopEnvironment to route 48 // DesktopSessionProxy is created by an owning DesktopEnvironment to route
48 // requests from stubs to the DesktopSessionAgent instance through 49 // requests from stubs to the DesktopSessionAgent instance through
49 // the IPC channel. DesktopSessionProxy is owned both by the DesktopEnvironment 50 // the IPC channel. DesktopSessionProxy is owned both by the DesktopEnvironment
50 // and the stubs, since stubs can out-live their DesktopEnvironment. 51 // and the stubs, since stubs can out-live their DesktopEnvironment.
51 // 52 //
52 // DesktopSessionProxy objects are ref-counted but are always deleted on 53 // DesktopSessionProxy objects are ref-counted but are always deleted on
53 // the |caller_tast_runner_| thread. This makes it possible to continue 54 // the |caller_tast_runner_| thread. This makes it possible to continue
54 // 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
55 // the proxy is deleted. DesktopSessionProxy must therefore avoid creating new 56 // the proxy is deleted. DesktopSessionProxy must therefore avoid creating new
(...skipping 12 matching lines...) Expand all
68 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 69 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
69 const std::string& client_jid, 70 const std::string& client_jid,
70 const base::Closure& disconnect_callback); 71 const base::Closure& disconnect_callback);
71 72
72 // Mirrors DesktopEnvironment. 73 // Mirrors DesktopEnvironment.
73 scoped_ptr<AudioCapturer> CreateAudioCapturer( 74 scoped_ptr<AudioCapturer> CreateAudioCapturer(
74 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner); 75 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner);
75 scoped_ptr<EventExecutor> CreateEventExecutor( 76 scoped_ptr<EventExecutor> CreateEventExecutor(
76 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 77 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
77 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); 78 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
79 scoped_ptr<SessionController> CreateSessionController();
78 scoped_ptr<media::ScreenCapturer> CreateVideoCapturer( 80 scoped_ptr<media::ScreenCapturer> CreateVideoCapturer(
79 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner, 81 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner,
80 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner); 82 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner);
81 83
82 // IPC::Listener implementation. 84 // IPC::Listener implementation.
83 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 85 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
84 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 86 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
85 virtual void OnChannelError() OVERRIDE; 87 virtual void OnChannelError() OVERRIDE;
86 88
87 // Connects to the desktop session agent. 89 // Connects to the desktop session agent.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 }; 208 };
207 209
208 // Destroys |DesktopSessionProxy| instances on the caller's thread. 210 // Destroys |DesktopSessionProxy| instances on the caller's thread.
209 struct DesktopSessionProxyTraits { 211 struct DesktopSessionProxyTraits {
210 static void Destruct(const DesktopSessionProxy* desktop_session_proxy); 212 static void Destruct(const DesktopSessionProxy* desktop_session_proxy);
211 }; 213 };
212 214
213 } // namespace remoting 215 } // namespace remoting
214 216
215 #endif // REMOTING_HOST_DESKTOP_SESSION_PROXY_H_ 217 #endif // REMOTING_HOST_DESKTOP_SESSION_PROXY_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_process_unittest.cc ('k') | remoting/host/desktop_session_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698