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

Side by Side Diff: remoting/host/daemon_sender.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: 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
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_DAEMON_SENDER_H_ 5 #ifndef REMOTING_HOST_DAEMON_SENDER_H_
6 #define REMOTING_HOST_DAEMON_SENDER_H_ 6 #define REMOTING_HOST_DAEMON_SENDER_H_
7 7
8 #include "ipc/ipc_sender.h" 8 #include "ipc/ipc_sender.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 11
12 class DesktopEnvironment; 12 class DesktopEnvironment;
13 13
14 class DaemonSender { 14 class DaemonSender {
Wez 2012/10/13 00:47:15 This class is called DaemonSender, but has two API
alexeypa (please no reviews) 2012/10/16 19:32:25 This is the case. The class has been renamed to De
15 public: 15 public:
16 DaemonSender() {} 16 DaemonSender() {}
17 virtual ~DaemonSender() {} 17 virtual ~DaemonSender() {}
18 18
19 // Registers |desktop_environment| with the daemon process causing a terminal 19 // Requests the daemon process to close terminal opened by OpenTerminal().
20 // to be associated with it. 20 virtual void CloseTerminal(DesktopEnvironment* desktop_environment) = 0;
21 virtual void RegisterDesktopEnvironment(
22 DesktopEnvironment* desktop_environment) = 0;
23 21
24 // Unregisters previously registered |desktop_environment|. 22 // Requests the daemon process to open a terminal and associates
25 virtual void UnregisterDesktopEnvironment( 23 // |desktop_environment| with it.
26 DesktopEnvironment* desktop_environment) = 0; 24 virtual void OpenTerminal(DesktopEnvironment* desktop_environment) = 0;
Wez 2012/10/13 00:47:15 nit: Put this above CloseTerminal, since it's the
alexeypa (please no reviews) 2012/10/16 19:32:25 Done.
27 25
28 private: 26 private:
29 DISALLOW_COPY_AND_ASSIGN(DaemonSender); 27 DISALLOW_COPY_AND_ASSIGN(DaemonSender);
30 }; 28 };
31 29
32 } // namespace remoting 30 } // namespace remoting
33 31
34 #endif // REMOTING_HOST_DAEMON_SENDER_H_ 32 #endif // REMOTING_HOST_DAEMON_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698