| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_RENDERER_HOST_MEDIA_SCREEN_CAPTURE_DEVICE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_SCREEN_CAPTURE_DEVICE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_SCREEN_CAPTURE_DEVICE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_SCREEN_CAPTURE_DEVICE_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 public: | 26 public: |
| 27 explicit ScreenCaptureDevice( | 27 explicit ScreenCaptureDevice( |
| 28 scoped_refptr<base::SequencedTaskRunner> task_runner); | 28 scoped_refptr<base::SequencedTaskRunner> task_runner); |
| 29 virtual ~ScreenCaptureDevice(); | 29 virtual ~ScreenCaptureDevice(); |
| 30 | 30 |
| 31 // Helper used in tests to supply a fake capturer. | 31 // Helper used in tests to supply a fake capturer. |
| 32 void SetScreenCapturerForTest( | 32 void SetScreenCapturerForTest( |
| 33 scoped_ptr<webrtc::ScreenCapturer> capturer); | 33 scoped_ptr<webrtc::ScreenCapturer> capturer); |
| 34 | 34 |
| 35 // VideoCaptureDevice interface. | 35 // VideoCaptureDevice interface. |
| 36 virtual media::VideoEncodingCapability GetEncodingCapability() OVERRIDE; |
| 37 virtual void TryConfigureEncodedBitstream( |
| 38 const media::RuntimeVideoEncodingParameters& params) OVERRIDE; |
| 36 virtual void Allocate(int width, int height, | 39 virtual void Allocate(int width, int height, |
| 37 int frame_rate, | 40 int frame_rate, |
| 38 EventHandler* event_handler) OVERRIDE; | 41 EventHandler* event_handler) OVERRIDE; |
| 39 virtual void Start() OVERRIDE; | 42 virtual void Start() OVERRIDE; |
| 40 virtual void Stop() OVERRIDE; | 43 virtual void Stop() OVERRIDE; |
| 41 virtual void DeAllocate() OVERRIDE; | 44 virtual void DeAllocate() OVERRIDE; |
| 42 virtual const Name& device_name() OVERRIDE; | 45 virtual const Name& device_name() OVERRIDE; |
| 43 | 46 |
| 44 private: | 47 private: |
| 45 class Core; | 48 class Core; |
| 46 scoped_refptr<Core> core_; | 49 scoped_refptr<Core> core_; |
| 47 Name name_; | 50 Name name_; |
| 48 | 51 |
| 49 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDevice); | 52 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDevice); |
| 50 }; | 53 }; |
| 51 | 54 |
| 52 } // namespace content | 55 } // namespace content |
| 53 | 56 |
| 54 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_SCREEN_CAPTURE_DEVICE_H_ | 57 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_SCREEN_CAPTURE_DEVICE_H_ |
| OLD | NEW |