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

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

Issue 11028128: [Chromoting] Request the daemon to open a terminal once a connection has been accepted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feeback and rebased on top of https://chromiumcodereview.appspot.com/11017065/ Created 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "remoting/host/desktop_environment.h"
12
13 namespace remoting {
14
15 class ChromotingHost;
16 class DesktopSessionConnector;
17
18 // A variant of desktop environment integrating with the desktop by means of
19 // a helper process and talking to that process via IPC.
20 class IpcDesktopEnvironment : public DesktopEnvironment {
21 public:
22 // Passes relevant task runners, |desktop_session_connector| and |host|.
Wez 2012/10/17 17:51:57 nit: Lose this line.
alexeypa (please no reviews) 2012/10/17 21:35:53 Done.
23 // |desktop_session_connector| is used to bind the IpcDesktopEnvironment and
Wez 2012/10/17 17:51:57 nit: and the -> to a
alexeypa (please no reviews) 2012/10/17 21:35:53 Done.
24 // the desktop session so that the former would then receive calls every time
25 // a new IPC channel to the desktop process is allocated.
Wez 2012/10/17 17:51:57 nit: "... so that the former... " -> "... to be no
alexeypa (please no reviews) 2012/10/17 21:35:53 Done.
26 // |desktop_session_connector| must outlive |this|.
27 // |host| specifis the host instance that indirectly owns |this|.
Wez 2012/10/17 17:51:57 typo: specifies
Wez 2012/10/17 17:51:57 nit: Explain what |host| is used for and restricti
alexeypa (please no reviews) 2012/10/17 21:35:53 Done.
alexeypa (please no reviews) 2012/10/17 21:35:53 Done.
28 IpcDesktopEnvironment(scoped_ptr<AudioCapturer> audio_capturer,
29 scoped_ptr<EventExecutor> event_executor,
30 scoped_ptr<VideoFrameCapturer> video_capturer,
Wez 2012/10/17 17:51:57 nit: Does the factory really need to pass these, o
alexeypa (please no reviews) 2012/10/17 21:35:53 Done.
31 DesktopSessionConnector* desktop_session_connector,
32 scoped_refptr<ChromotingHost> host);
33 virtual ~IpcDesktopEnvironment();
34
35 virtual void Start(
36 scoped_ptr<protocol::ClipboardStub> client_clipboard) OVERRIDE;
37
38 // Disconnects the client that is using |desktop_environment|.
39 void DisconnectClient();
Wez 2012/10/17 17:51:57 Won't this be triggered by an IPC from the daemon,
alexeypa (please no reviews) 2012/10/17 21:35:53 IpcDesktopEnvironmentFactory calls it, so it needs
40
41 private:
42 // True if |this| has been connected to a desktop session.
43 bool connected_;
Wez 2012/10/17 17:51:57 nit: Put this after the two fields that come from
alexeypa (please no reviews) 2012/10/17 21:35:53 Done.
44
45 DesktopSessionConnector* desktop_session_connector_;
46
47 // The host instance |this| belongs to.
48 scoped_refptr<ChromotingHost> host_;
49
50 DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironment);
51 };
52
53 } // namespace remoting
54
55 #endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698