Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CAPTURER_LINUX_H_ | 5 #ifndef REMOTING_HOST_CAPTURER_LINUX_H_ |
| 6 #define REMOTING_HOST_CAPTURER_LINUX_H_ | 6 #define REMOTING_HOST_CAPTURER_LINUX_H_ |
| 7 | 7 |
| 8 #include "remoting/host/capturer.h" | 8 #include "remoting/host/capturer.h" |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| 11 | 11 |
| 12 class CapturerLinuxPimpl; | 12 class CapturerLinuxPimpl; |
| 13 | 13 |
| 14 // A class to perform capturing for Linux. | 14 // A class to perform capturing for Linux. |
| 15 class CapturerLinux : public Capturer { | 15 class CapturerLinux : public Capturer { |
| 16 public: | 16 public: |
| 17 CapturerLinux(); | 17 CapturerLinux(MessageLoop* message_loop); |
|
awong
2010/11/16 00:42:12
explicit
| |
| 18 virtual ~CapturerLinux(); | 18 virtual ~CapturerLinux(); |
| 19 | 19 |
| 20 virtual void ScreenConfigurationChanged(); | 20 virtual void ScreenConfigurationChanged(); |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 friend class CapturerLinuxPimpl; | 23 friend class CapturerLinuxPimpl; |
| 24 virtual void CalculateInvalidRects(); | 24 virtual void CalculateInvalidRects(); |
| 25 virtual void CaptureRects(const InvalidRects& rects, | 25 virtual void CaptureRects(const InvalidRects& rects, |
| 26 CaptureCompletedCallback* callback); | 26 CaptureCompletedCallback* callback); |
| 27 | 27 |
| 28 scoped_ptr<CapturerLinuxPimpl> pimpl_; | 28 scoped_ptr<CapturerLinuxPimpl> pimpl_; |
| 29 DISALLOW_COPY_AND_ASSIGN(CapturerLinux); | 29 DISALLOW_COPY_AND_ASSIGN(CapturerLinux); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace remoting | 32 } // namespace remoting |
| 33 | 33 |
| 34 #endif // REMOTING_HOST_CAPTURER_LINUX_H_ | 34 #endif // REMOTING_HOST_CAPTURER_LINUX_H_ |
| OLD | NEW |