Chromium Code Reviews| Index: media/capture/content/android/screen_capture_device_android.h |
| diff --git a/media/capture/content/android/screen_capture_device_android.h b/media/capture/content/android/screen_capture_device_android.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..40ea6a301cb4bc35c29b9e1e9e1082cf70bd5812 |
| --- /dev/null |
| +++ b/media/capture/content/android/screen_capture_device_android.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
|
mcasas
2016/04/27 01:19:27
2016 here and elsewhere where you
add a file.
braveyao
2016/05/04 18:49:41
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_DEVICE_ANDROID_H_ |
|
mcasas
2016/04/27 01:19:27
Guards don't match path, here and in several
other
braveyao
2016/05/04 18:49:41
Done.
|
| +#define MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_DEVICE_ANDROID_H_ |
| + |
| +#include <memory> |
| + |
| +#include "media/capture/content/screen_capture_device_core.h" |
| +#include "media/capture/video/video_capture_device.h" |
| + |
| +namespace media { |
| + |
| +class ScreenCaptureDeviceAndroid : public VideoCaptureDevice { |
| + public: |
| + explicit ScreenCaptureDeviceAndroid(); |
|
mcasas
2016/04/27 01:19:27
No need for explicit.
braveyao
2016/05/04 18:49:41
Done.
|
| + ~ScreenCaptureDeviceAndroid() override; |
| + |
| + // VideoCaptureDevice implementation. |
| + void AllocateAndStart(const VideoCaptureParams& params, |
| + std::unique_ptr<Client> client) override; |
| + void StopAndDeAllocate() override; |
|
miu
2016/04/27 05:24:53
Please also implement the RequestRefreshFrame() me
braveyao
2016/05/04 18:49:41
Done.
|
| + |
| + private: |
| + std::unique_ptr<ScreenCaptureDeviceCore> core_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ScreenCaptureDeviceAndroid); |
| +}; |
| + |
| +} // namespace media |
| + |
| +#endif // MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_DEVICE_ANDROID_H_ |