| 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 CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_VIDEO_CAPTURE_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_VIDEO_CAPTURE_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_VIDEO_CAPTURE_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_VIDEO_CAPTURE_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/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "media/video/capture/video_capture.h" | 14 #include "media/video/capture/video_capture.h" |
| 15 #include "media/video/capture/video_capture_types.h" | 15 #include "media/video/capture/video_capture_types.h" |
| 16 | 16 |
| 17 class GURL; | 17 class GURL; |
| 18 | 18 |
| 19 namespace media { | 19 namespace media { |
| 20 class VideoCaptureHandlerProxy; | 20 class VideoCaptureHandlerProxy; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace content { | 23 namespace content { |
| 24 class PepperHelperImpl; |
| 24 class PepperMediaDeviceManager; | 25 class PepperMediaDeviceManager; |
| 25 class PepperPluginDelegateImpl; | |
| 26 class PepperVideoCaptureHost; | 26 class PepperVideoCaptureHost; |
| 27 class RenderViewImpl; | 27 class RenderViewImpl; |
| 28 | 28 |
| 29 class PepperPlatformVideoCapture | 29 class PepperPlatformVideoCapture |
| 30 : public media::VideoCapture, | 30 : public media::VideoCapture, |
| 31 public base::RefCounted<PepperPlatformVideoCapture>, | 31 public base::RefCounted<PepperPlatformVideoCapture>, |
| 32 public media::VideoCapture::EventHandler { | 32 public media::VideoCapture::EventHandler { |
| 33 public: | 33 public: |
| 34 PepperPlatformVideoCapture( | 34 PepperPlatformVideoCapture( |
| 35 const base::WeakPtr<RenderViewImpl>& render_view, | 35 const base::WeakPtr<RenderViewImpl>& render_view, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // there isn't any pending request before this object goes away. | 96 // there isn't any pending request before this object goes away. |
| 97 bool pending_open_device_; | 97 bool pending_open_device_; |
| 98 int pending_open_device_id_; | 98 int pending_open_device_id_; |
| 99 | 99 |
| 100 DISALLOW_COPY_AND_ASSIGN(PepperPlatformVideoCapture); | 100 DISALLOW_COPY_AND_ASSIGN(PepperPlatformVideoCapture); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace content | 103 } // namespace content |
| 104 | 104 |
| 105 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_VIDEO_CAPTURE_H_ | 105 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_VIDEO_CAPTURE_H_ |
| OLD | NEW |