OLD | NEW |
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_IPC_DESKTOP_ENVIRONMENT_H_ | 5 #ifndef REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ |
6 #define REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ | 6 #define REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 42 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
43 const std::string& client_jid, | 43 const std::string& client_jid, |
44 const base::Closure& disconnect_callback, | 44 const base::Closure& disconnect_callback, |
45 base::WeakPtr<DesktopSessionConnector> desktop_session_connector, | 45 base::WeakPtr<DesktopSessionConnector> desktop_session_connector, |
46 bool virtual_terminal); | 46 bool virtual_terminal); |
47 virtual ~IpcDesktopEnvironment(); | 47 virtual ~IpcDesktopEnvironment(); |
48 | 48 |
49 // DesktopEnvironment implementation. | 49 // DesktopEnvironment implementation. |
50 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer( | 50 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer( |
51 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner) OVERRIDE; | 51 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner) OVERRIDE; |
52 virtual scoped_ptr<EventExecutor> CreateEventExecutor( | 52 virtual scoped_ptr<InputInjector> CreateInputInjector( |
53 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 53 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
54 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) OVERRIDE; | 54 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) OVERRIDE; |
55 virtual scoped_ptr<SessionController> CreateSessionController() OVERRIDE; | 55 virtual scoped_ptr<SessionController> CreateSessionController() OVERRIDE; |
56 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer( | 56 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer( |
57 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner, | 57 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner, |
58 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner) OVERRIDE; | 58 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner) OVERRIDE; |
59 | 59 |
60 private: | 60 private: |
61 // Task runner on which public methods of this class should be called. | 61 // Task runner on which public methods of this class should be called. |
62 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_; | 62 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // This gives us more than 67 years of unique IDs assuming a new ID is | 130 // This gives us more than 67 years of unique IDs assuming a new ID is |
131 // allocated every second. | 131 // allocated every second. |
132 int next_id_; | 132 int next_id_; |
133 | 133 |
134 DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironmentFactory); | 134 DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironmentFactory); |
135 }; | 135 }; |
136 | 136 |
137 } // namespace remoting | 137 } // namespace remoting |
138 | 138 |
139 #endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ | 139 #endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ |
OLD | NEW |