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

Unified Diff: services/video_capture/public/interfaces/device_factory_provider.mojom

Issue 2824883005: [Mojo Video Capture] Stop service when last client disconnects. (Closed)
Patch Set: Incorporate suggestions from PatchSet #4 Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: services/video_capture/public/interfaces/device_factory_provider.mojom
diff --git a/services/video_capture/public/interfaces/service.mojom b/services/video_capture/public/interfaces/device_factory_provider.mojom
similarity index 66%
rename from services/video_capture/public/interfaces/service.mojom
rename to services/video_capture/public/interfaces/device_factory_provider.mojom
index a08ae596bb4164dc28188c68364c1271df594e8f..b52f33c84c80213c2c7878f2cf23df712cddb2c4 100644
--- a/services/video_capture/public/interfaces/service.mojom
+++ b/services/video_capture/public/interfaces/device_factory_provider.mojom
@@ -6,7 +6,7 @@ module video_capture.mojom;
import "services/video_capture/public/interfaces/device_factory.mojom";
-// Production entry point to the Video Capture Service API.
+// Entry point to the Video Capture Service API.
// The service hosts two DeviceFactories. The "regular" factory
// provides access to the capture devices connected to the system. The "fake"
// factory provides access to a single fake device that generates test frames.
@@ -14,7 +14,14 @@ import "services/video_capture/public/interfaces/device_factory.mojom";
// shipped in release builds of Chromium. It is useful for Web Developers who
// want to test video capture code without having to use an actual capture
// device.
-interface Service {
+interface DeviceFactoryProvider {
ConnectToDeviceFactory(DeviceFactory& request);
ConnectToFakeDeviceFactory(DeviceFactory& request);
+
+ // The service shuts down after a certain delay when no client is connected.
+ // This method allows clients to customize this delay.
+ // An example use case for a custom delay is integration tests that want to
+ // minimize wait time.
+ // The default value is found in constants.mojom.
+ SetShutdownDelayInSeconds(float seconds);
};
« no previous file with comments | « services/video_capture/public/interfaces/constants.mojom ('k') | services/video_capture/public/interfaces/service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698