| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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<EventExecutor> CreateEventExecutor( |
| 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<media::ScreenCapturer> CreateVideoCapturer( | 56 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer( |
| 56 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner, | 57 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner, |
| 57 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner) OVERRIDE; | 58 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner) OVERRIDE; |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 // 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. |
| 61 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_; | 62 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner_; |
| 62 | 63 |
| 63 scoped_refptr<DesktopSessionProxy> desktop_session_proxy_; | 64 scoped_refptr<DesktopSessionProxy> desktop_session_proxy_; |
| 64 | 65 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // This gives us more than 67 years of unique IDs assuming a new ID is | 127 // This gives us more than 67 years of unique IDs assuming a new ID is |
| 127 // allocated every second. | 128 // allocated every second. |
| 128 int next_id_; | 129 int next_id_; |
| 129 | 130 |
| 130 DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironmentFactory); | 131 DISALLOW_COPY_AND_ASSIGN(IpcDesktopEnvironmentFactory); |
| 131 }; | 132 }; |
| 132 | 133 |
| 133 } // namespace remoting | 134 } // namespace remoting |
| 134 | 135 |
| 135 #endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ | 136 #endif // REMOTING_HOST_IPC_DESKTOP_ENVIRONMENT_H_ |
| OLD | NEW |