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 212e25cea117d75423847dcf7fcf744f7e7730cd..43d34c0008eb95019a265ea8a54142eb7491eac5 100644 |
--- a/chrome/browser/media/router/presentation_service_delegate_impl.h |
+++ b/chrome/browser/media/router/presentation_service_delegate_impl.h |
@@ -46,6 +46,12 @@ class PresentationServiceDelegateImpl |
: public content::WebContentsUserData<PresentationServiceDelegateImpl>, |
public content::PresentationServiceDelegate { |
public: |
+ // Retrieves the instance of PresentationServiceDelegateImpl that was attached |
+ // to the specified WebContents. If no instance was attached, creates one, |
+ // and attaches it to the specified WebContents. |
+ static PresentationServiceDelegateImpl* GetOrCreateForWebContents( |
+ content::WebContents* web_contents); |
+ |
~PresentationServiceDelegateImpl() override; |
// content::PresentationServiceDelegate implementation. |