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

Unified Diff: chrome/browser/media/router/presentation_service_delegate_impl.h

Issue 1173753003: [Media Router] Implement JoinRoute + update CreateRoute API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fix again x2 Created 5 years, 6 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/browser/media/router/presentation_service_delegate_impl.h
diff --git a/chrome/browser/media/router/presentation_service_delegate_impl.h b/chrome/browser/media/router/presentation_service_delegate_impl.h
index f3bd53f7d591ecf2afa11cb2d412d446e573bcd5..b8a6c81083e6a10f16cb0df9fa36b6ecad4824d5 100644
--- a/chrome/browser/media/router/presentation_service_delegate_impl.h
+++ b/chrome/browser/media/router/presentation_service_delegate_impl.h
@@ -118,11 +118,10 @@ class PresentationServiceDelegateImpl
// Called when default media source for the corresponding WebContents has
// changed.
// |source|: New default MediaSource, or empty if default was removed.
- // |frame_url|: URL of the frame that contains the default
- // media source, or empty if there is no default media source.
- virtual void OnDefaultMediaSourceChanged(
- const MediaSource& source,
- const GURL& frame_url) = 0;
+ // |frame_url|: URL of the frame that contains the default media
+ // source, or empty if there is no default media source.
+ virtual void OnDefaultMediaSourceChanged(const MediaSource& source,
+ const GURL& frame_url) = 0;
};
// Adds / removes an observer for listening to default MediaSource changes.
@@ -152,13 +151,15 @@ class PresentationServiceDelegateImpl
// Returns |true| if the frame is the main frame of |web_contents_|.
bool IsMainFrame(int render_process_id, int render_frame_id) const;
- // Updates tab-level default MediaSource and source host name. If either
+ // Updates tab-level default MediaSource and/or default frame URL. If either
// changed, notify the observers.
void UpdateDefaultMediaSourceAndNotifyObservers(
const MediaSource& new_default_source,
const GURL& new_default_frame_url);
+ // Default MediaSource for the tab associated with this instance.
MediaSource default_source_;
+ // URL of the frame that contains the default MediaSource.
GURL default_frame_url_;
// References to the observers listening for changes to default media source.
« no previous file with comments | « chrome/browser/media/router/mock_media_router.h ('k') | chrome/browser/media/router/presentation_service_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698