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_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ |
6 #define CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ | 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 : public media::VideoCaptureDevice { | 29 : public media::VideoCaptureDevice { |
30 public: | 30 public: |
31 // Create a WebContentsVideoCaptureDevice instance from the given | 31 // Create a WebContentsVideoCaptureDevice instance from the given |
32 // |device_id|. Returns NULL if |device_id| is invalid. | 32 // |device_id|. Returns NULL if |device_id| is invalid. |
33 static media::VideoCaptureDevice* Create(const std::string& device_id); | 33 static media::VideoCaptureDevice* Create(const std::string& device_id); |
34 | 34 |
35 virtual ~WebContentsVideoCaptureDevice(); | 35 virtual ~WebContentsVideoCaptureDevice(); |
36 | 36 |
37 // VideoCaptureDevice implementation. | 37 // VideoCaptureDevice implementation. |
38 virtual void AllocateAndStart(const media::VideoCaptureParams& params, | 38 virtual void AllocateAndStart(const media::VideoCaptureParams& params, |
39 scoped_ptr<Client> client) OVERRIDE; | 39 scoped_ptr<Client> client) override; |
40 virtual void StopAndDeAllocate() OVERRIDE; | 40 virtual void StopAndDeAllocate() override; |
41 | 41 |
42 private: | 42 private: |
43 WebContentsVideoCaptureDevice( | 43 WebContentsVideoCaptureDevice( |
44 int render_process_id, int main_render_frame_id); | 44 int render_process_id, int main_render_frame_id); |
45 | 45 |
46 const scoped_ptr<ContentVideoCaptureDeviceCore> core_; | 46 const scoped_ptr<ContentVideoCaptureDeviceCore> core_; |
47 | 47 |
48 DISALLOW_COPY_AND_ASSIGN(WebContentsVideoCaptureDevice); | 48 DISALLOW_COPY_AND_ASSIGN(WebContentsVideoCaptureDevice); |
49 }; | 49 }; |
50 | 50 |
51 | 51 |
52 } // namespace content | 52 } // namespace content |
53 | 53 |
54 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ | 54 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_VIDEO_CAPTURE_DEVICE_H_ |
OLD | NEW |