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_VIDEO_FRAME_CAPTURER_H_ | 5 #ifndef REMOTING_HOST_IPC_VIDEO_FRAME_CAPTURER_H_ |
6 #define REMOTING_HOST_IPC_VIDEO_FRAME_CAPTURER_H_ | 6 #define REMOTING_HOST_IPC_VIDEO_FRAME_CAPTURER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" | 12 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
12 | 13 |
13 namespace remoting { | 14 namespace remoting { |
14 | 15 |
15 class DesktopSessionProxy; | 16 class DesktopSessionProxy; |
16 | 17 |
17 // Routes webrtc::DesktopCapturer calls though the IPC channel to the desktop | 18 // Routes webrtc::DesktopCapturer calls though the IPC channel to the desktop |
18 // session agent running in the desktop integration process. | 19 // session agent running in the desktop integration process. |
19 class IpcVideoFrameCapturer : public webrtc::DesktopCapturer { | 20 class IpcVideoFrameCapturer : public webrtc::DesktopCapturer { |
20 public: | 21 public: |
(...skipping 20 matching lines...) Expand all Loading... |
41 | 42 |
42 // Used to cancel tasks pending on the capturer when it is stopped. | 43 // Used to cancel tasks pending on the capturer when it is stopped. |
43 base::WeakPtrFactory<IpcVideoFrameCapturer> weak_factory_; | 44 base::WeakPtrFactory<IpcVideoFrameCapturer> weak_factory_; |
44 | 45 |
45 DISALLOW_COPY_AND_ASSIGN(IpcVideoFrameCapturer); | 46 DISALLOW_COPY_AND_ASSIGN(IpcVideoFrameCapturer); |
46 }; | 47 }; |
47 | 48 |
48 } // namespace remoting | 49 } // namespace remoting |
49 | 50 |
50 #endif // REMOTING_HOST_IPC_VIDEO_FRAME_CAPTURER_H_ | 51 #endif // REMOTING_HOST_IPC_VIDEO_FRAME_CAPTURER_H_ |
OLD | NEW |