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

Side by Side Diff: content/browser/renderer_host/media/service_video_capture_provider.h

Issue 2857303002: [Mojo Video Capture] Implement a VideoCaptureProvider using the Mojo service (part 2) (Closed)
Patch Set: Added back update to |state_| which was accidentally dropped in PatchSet 3 Created 3 years, 7 months 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_SERVICE_VIDEO_CAPTURE_PROVIDER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_SERVICE_VIDEO_CAPTURE_PROVIDER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_SERVICE_VIDEO_CAPTURE_PROVIDER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_SERVICE_VIDEO_CAPTURE_PROVIDER_H_
7 7
8 #include "base/threading/thread_checker.h" 8 #include "base/threading/thread_checker.h"
9 #include "content/browser/renderer_host/media/video_capture_provider.h" 9 #include "content/browser/renderer_host/media/video_capture_provider.h"
10 #include "services/video_capture/public/interfaces/device_factory.mojom.h" 10 #include "services/video_capture/public/interfaces/device_factory.mojom.h"
(...skipping 22 matching lines...) Expand all
33 33
34 private: 34 private:
35 void LazyConnectToService(); 35 void LazyConnectToService();
36 void OnLostConnectionToDeviceFactory(); 36 void OnLostConnectionToDeviceFactory();
37 37
38 std::unique_ptr<service_manager::Connector> connector_; 38 std::unique_ptr<service_manager::Connector> connector_;
39 // We must hold on to |device_factory_provider_| because it holds the 39 // We must hold on to |device_factory_provider_| because it holds the
40 // service-side binding for |device_factory_|. 40 // service-side binding for |device_factory_|.
41 video_capture::mojom::DeviceFactoryProviderPtr device_factory_provider_; 41 video_capture::mojom::DeviceFactoryProviderPtr device_factory_provider_;
42 video_capture::mojom::DeviceFactoryPtr device_factory_; 42 video_capture::mojom::DeviceFactoryPtr device_factory_;
43 base::ThreadChecker thread_checker_; 43 base::SequenceChecker sequence_checker_;
44 }; 44 };
45 45
46 } // namespace content 46 } // namespace content
47 47
48 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_SERVICE_VIDEO_CAPTURE_PROVIDER_H_ 48 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_SERVICE_VIDEO_CAPTURE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698