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

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

Issue 2244773002: Video Capture Mojo (1.4c): Handle Subsequent Access (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FillServicePart2
Patch Set: mcasas' comments Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 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 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 SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_IMPL_H_ 5 #ifndef SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_IMPL_H_
6 #define SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_IMPL_H_ 6 #define SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "mojo/public/cpp/bindings/binding.h" 10 #include "mojo/public/cpp/bindings/binding.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 DeviceEntry(DeviceEntry&& other); 47 DeviceEntry(DeviceEntry&& other);
48 DeviceEntry& operator=(DeviceEntry&& other); 48 DeviceEntry& operator=(DeviceEntry&& other);
49 49
50 mojom::VideoCaptureDeviceDescriptorPtr MakeDescriptorCopy() const; 50 mojom::VideoCaptureDeviceDescriptorPtr MakeDescriptorCopy() const;
51 bool DescriptorEquals( 51 bool DescriptorEquals(
52 const mojom::VideoCaptureDeviceDescriptorPtr& other) const; 52 const mojom::VideoCaptureDeviceDescriptorPtr& other) const;
53 bool is_bound() const; 53 bool is_bound() const;
54 void Bind(mojom::VideoCaptureDeviceProxyRequest request); 54 void Bind(mojom::VideoCaptureDeviceProxyRequest request);
55 void Unbind(); 55 void Unbind();
56 56
57 void OnConnectionErrorOrClose();
58
57 private: 59 private:
58 mojom::VideoCaptureDeviceDescriptorPtr descriptor_; 60 mojom::VideoCaptureDeviceDescriptorPtr descriptor_;
59 std::unique_ptr<VideoCaptureDeviceProxyImpl> device_proxy_; 61 std::unique_ptr<VideoCaptureDeviceProxyImpl> device_proxy_;
60 std::unique_ptr<mojo::Binding<mojom::VideoCaptureDeviceProxy>> binding_; 62 std::unique_ptr<mojo::Binding<mojom::VideoCaptureDeviceProxy>> binding_;
Ken Rockot(use gerrit already) 2016/09/06 16:50:26 Apologies if I missed this in a prior CL, but why
Ken Rockot(use gerrit already) 2016/09/06 17:00:28 Nevermind, thought this was a field in the impl, n
chfremer 2016/09/06 17:29:58 Thanks for raising this. After offline discussion,
61 63
62 DISALLOW_COPY_AND_ASSIGN(DeviceEntry); 64 DISALLOW_COPY_AND_ASSIGN(DeviceEntry);
63 }; 65 };
64 66
65 std::vector<DeviceEntry> devices_; 67 std::vector<DeviceEntry> devices_;
66 }; 68 };
67 69
68 } // namespace video_capture 70 } // namespace video_capture
69 71
70 #endif // SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_IMPL_H_ 72 #endif // SERVICES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698