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

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

Issue 11447021: Added support of Secure Attention Sequence in multiprocess mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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/chromoting_messages.h ('k') | remoting/host/desktop_process.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_PROCESS_H_ 5 #ifndef REMOTING_HOST_DESKTOP_PROCESS_H_
6 #define REMOTING_HOST_DESKTOP_PROCESS_H_ 6 #define REMOTING_HOST_DESKTOP_PROCESS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h"
14 #include "ipc/ipc_listener.h" 15 #include "ipc/ipc_listener.h"
16 #include "remoting/host/desktop_session_agent.h"
15 17
16 namespace IPC { 18 namespace IPC {
17 class ChannelProxy; 19 class ChannelProxy;
18 } // namespace IPC 20 } // namespace IPC
19 21
20 namespace remoting { 22 namespace remoting {
21 23
22 class AutoThreadTaskRunner; 24 class AutoThreadTaskRunner;
23 class DesktopSessionAgent; 25 class DesktopSessionAgent;
24 26
25 class DesktopProcess : public IPC::Listener { 27 class DesktopProcess : public DesktopSessionAgent::Delegate,
28 public IPC::Listener,
29 public base::SupportsWeakPtr<DesktopProcess> {
26 public: 30 public:
27 DesktopProcess(scoped_refptr<AutoThreadTaskRunner> caller_task_runner, 31 DesktopProcess(scoped_refptr<AutoThreadTaskRunner> caller_task_runner,
28 const std::string& daemon_channel_name); 32 const std::string& daemon_channel_name);
29 virtual ~DesktopProcess(); 33 virtual ~DesktopProcess();
30 34
35 // DesktopSessionAgent::Delegate implementation.
36 virtual void OnNetworkProcessDisconnected() OVERRIDE;
37 virtual void InjectSas() OVERRIDE;
38
31 // IPC::Listener implementation. 39 // IPC::Listener implementation.
32 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 40 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
33 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 41 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
34 virtual void OnChannelError() OVERRIDE; 42 virtual void OnChannelError() OVERRIDE;
35 43
36 // Creates the desktop agent and required threads and IPC channels. Returns 44 // Creates the desktop agent and required threads and IPC channels. Returns
37 // true on success. 45 // true on success.
38 bool Start(); 46 bool Start();
39 47
40 private: 48 private:
(...skipping 17 matching lines...) Expand all
58 // Provides screen/audio capturing and input injection services for 66 // Provides screen/audio capturing and input injection services for
59 // the network process. 67 // the network process.
60 scoped_refptr<DesktopSessionAgent> desktop_agent_; 68 scoped_refptr<DesktopSessionAgent> desktop_agent_;
61 69
62 DISALLOW_COPY_AND_ASSIGN(DesktopProcess); 70 DISALLOW_COPY_AND_ASSIGN(DesktopProcess);
63 }; 71 };
64 72
65 } // namespace remoting 73 } // namespace remoting
66 74
67 #endif // REMOTING_HOST_DESKTOP_PROCESS_H_ 75 #endif // REMOTING_HOST_DESKTOP_PROCESS_H_
OLDNEW
« no previous file with comments | « remoting/host/chromoting_messages.h ('k') | remoting/host/desktop_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698