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

Unified Diff: chrome/renderer/media/cast_session_delegate.h

Issue 901833004: [Cast] Repurpose CastInitializationStatus for variable frame size support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fixes. Created 5 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: chrome/renderer/media/cast_session_delegate.h
diff --git a/chrome/renderer/media/cast_session_delegate.h b/chrome/renderer/media/cast_session_delegate.h
index a89892c20abf90f185782a6efecbaf3e92acfad3..fb0dd09793e166a92575d79ae3cc13b2ea7004ed 100644
--- a/chrome/renderer/media/cast_session_delegate.h
+++ b/chrome/renderer/media/cast_session_delegate.h
@@ -86,12 +86,17 @@ class CastSessionDelegate {
void GetStatsAndReset(bool is_audio, const StatsCallback& callback);
protected:
- // Callback with the result of the initialization.
- // If this callback is called with STATUS_INITIALIZED it will report back
- // to the sinks that it's ready to accept incoming audio / video frames.
- void InitializationResultCB(
+ // Called to report back operational status changes. The first time this is
+ // called with STATUS_INITIALIZED will result in running the "frame input
+ // available" callback, to indicate the session is ready to accept incoming
+ // audio/video frames. If this is called with an error that has halted the
+ // session, the |error_callback| provided to StartXXX() will be run. This
+ // method may be called multiple times during the session to indicate codec
+ // re-initializations are taking place and/or runtime errors have occurred.
+ void OnOperationalStatusChange(
+ bool is_for_audio,
const ErrorCallback& error_callback,
- media::cast::CastInitializationStatus result) const;
+ media::cast::OperationalStatus result);
private:
void StatusNotificationCB(
« no previous file with comments | « no previous file | chrome/renderer/media/cast_session_delegate.cc » ('j') | chrome/renderer/media/cast_session_delegate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698