OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CAMERA_DEVICE_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CAMERA_DEVICE_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CAMERA_DEVICE_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CAMERA_DEVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 ~PepperPlatformCameraDevice(); | 32 ~PepperPlatformCameraDevice(); |
33 | 33 |
34 // Detaches the event handler and stops sending notifications to it. | 34 // Detaches the event handler and stops sending notifications to it. |
35 void DetachEventHandler(); | 35 void DetachEventHandler(); |
36 | 36 |
37 void GetSupportedVideoCaptureFormats(); | 37 void GetSupportedVideoCaptureFormats(); |
38 | 38 |
39 private: | 39 private: |
40 void OnDeviceOpened(int request_id, bool succeeded, const std::string& label); | 40 void OnDeviceOpened(int request_id, bool succeeded, const std::string& label); |
41 | 41 |
42 // Called by VideoCaptureImplManager. | 42 // Called by VideoCaptureService. |
43 void OnDeviceSupportedFormatsEnumerated( | 43 void OnDeviceSupportedFormatsEnumerated( |
44 const media::VideoCaptureFormats& formats); | 44 const media::VideoCaptureFormats& formats); |
45 | 45 |
46 // Can return NULL if the RenderFrame referenced by |render_frame_id_| has | 46 // Can return NULL if the RenderFrame referenced by |render_frame_id_| has |
47 // gone away. | 47 // gone away. |
48 PepperMediaDeviceManager* GetMediaDeviceManager(); | 48 PepperMediaDeviceManager* GetMediaDeviceManager(); |
49 | 49 |
50 const int render_frame_id_; | 50 const int render_frame_id_; |
51 const std::string device_id_; | 51 const std::string device_id_; |
52 | 52 |
(...skipping 11 matching lines...) Expand all Loading... |
64 base::ThreadChecker thread_checker_; | 64 base::ThreadChecker thread_checker_; |
65 | 65 |
66 base::WeakPtrFactory<PepperPlatformCameraDevice> weak_factory_; | 66 base::WeakPtrFactory<PepperPlatformCameraDevice> weak_factory_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(PepperPlatformCameraDevice); | 68 DISALLOW_COPY_AND_ASSIGN(PepperPlatformCameraDevice); |
69 }; | 69 }; |
70 | 70 |
71 } // namespace content | 71 } // namespace content |
72 | 72 |
73 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CAMERA_DEVICE_H_ | 73 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_CAMERA_DEVICE_H_ |
OLD | NEW |