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

Unified Diff: media/capture/content/thread_safe_capture_oracle.h

Issue 2673373003: getUserMeida: report device starting states (Closed)
Patch Set: address comments on PS#4 and revise unittests Created 3 years, 10 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: media/capture/content/thread_safe_capture_oracle.h
diff --git a/media/capture/content/thread_safe_capture_oracle.h b/media/capture/content/thread_safe_capture_oracle.h
index 7b970c359d579332b472008253f3a0ceb7f29258..c107a19c74ca5a8b28b97a4a631752f0a8fbaedb 100644
--- a/media/capture/content/thread_safe_capture_oracle.h
+++ b/media/capture/content/thread_safe_capture_oracle.h
@@ -91,6 +91,9 @@ class CAPTURE_EXPORT ThreadSafeCaptureOracle
void ReportError(const tracked_objects::Location& from_here,
const std::string& reason);
+ // Signal device started to the client.
+ void ReportStarted();
+
void OnConsumerReportingUtilization(int frame_number, double utilization);
private:
@@ -122,6 +125,9 @@ class CAPTURE_EXPORT ThreadSafeCaptureOracle
// The video capture parameters used to construct the oracle proxy.
const VideoCaptureParams params_;
+
+ // OnStarted() event has been reported.
+ bool capture_;
};
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698