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

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

Issue 2824883005: [Mojo Video Capture] Stop service when last client disconnects. (Closed)
Patch Set: 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/service.mojom
diff --git a/services/video_capture/public/interfaces/service.mojom b/services/video_capture/public/interfaces/service.mojom
index a08ae596bb4164dc28188c68364c1271df594e8f..70a81185f173407d5e30cb195fa79bfecc371ff7 100644
--- a/services/video_capture/public/interfaces/service.mojom
+++ b/services/video_capture/public/interfaces/service.mojom
@@ -17,4 +17,11 @@ import "services/video_capture/public/interfaces/device_factory.mojom";
interface Service {
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);
};

Powered by Google App Engine
This is Rietveld 408576698