Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: services/video_capture/device_client_media_to_mojo_adapter.h

Issue 2502483003: [Mojo Video Capture] Cleanup naming of classes/files in services/video_capture (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_VIDEO_CAPTURE_DEVICE_CLIENT_MEDIA_TO_MOJO_ADAPTER_H_
6 #define SERVICES_VIDEO_CAPTURE_DEVICE_CLIENT_MEDIA_TO_MOJO_ADAPTER_H_
7
8 #include "media/capture/video/video_capture_device.h"
9 #include "mojo/public/cpp/bindings/strong_binding.h"
10 #include "services/video_capture/public/interfaces/mock_video_capture_device.moj om.h"
11
12 namespace video_capture {
13
14 // Adapter that allows a media::VideoCaptureDevice::Client to be used in place
15 // of a mojom::MockDeviceClient. Since the implemented interface
16 // MockDeviceClient is empty, its purpose is mostly to own the wrapped
17 // instance of media::VideoCaptureDevice::Client and keep it alive until the
18 // connection is closed.
19 class DeviceClientMediaToMojoAdapter : public mojom::MockDeviceClient {
20 public:
21 ~DeviceClientMediaToMojoAdapter() override;
22
23 DeviceClientMediaToMojoAdapter(
24 std::unique_ptr<media::VideoCaptureDevice::Client> client);
25
26 private:
27 std::unique_ptr<media::VideoCaptureDevice::Client> client_;
28 };
29
30 } // namespace video_capture
31
32 #endif // SERVICES_VIDEO_CAPTURE_DEVICE_CLIENT_MEDIA_TO_MOJO_ADAPTER_H_
OLDNEW
« no previous file with comments | « services/video_capture/BUILD.gn ('k') | services/video_capture/device_client_media_to_mojo_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698