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

Unified Diff: ios/public/provider/chrome/browser/chrome_browser_provider.h

Issue 2396943002: Adds methods for Cast support to ios::ChromeBrowserProvider. (Closed)
Patch Set: Rebased. Created 4 years, 2 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
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/chrome_browser_provider.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/provider/chrome/browser/chrome_browser_provider.h
diff --git a/ios/public/provider/chrome/browser/chrome_browser_provider.h b/ios/public/provider/chrome/browser/chrome_browser_provider.h
index a841ea04d24a6c64dcece8a1e27326dc0f71f5bf..544b1ebf2fbcec9a067e191129ef767b5ba4a4ab 100644
--- a/ios/public/provider/chrome/browser/chrome_browser_provider.h
+++ b/ios/public/provider/chrome/browser/chrome_browser_provider.h
@@ -32,6 +32,10 @@ namespace net {
class URLRequestContextGetter;
}
+namespace web {
+class WebState;
+}
+
namespace sync_sessions {
class SyncedWindowDelegatesGetter;
}
@@ -119,6 +123,17 @@ class ChromeBrowserProvider {
// ratings prompts are not supported by the provider.
virtual id<AppRatingPrompt> CreateAppRatingPrompt() const NS_RETURNS_RETAINED;
+ // Initializes the cast service. Should be called soon after the given
+ // |tab_model| is created.
+ // TODO(rohitrao): Change from |id| to |TabModel*| once TabModel is moved into
+ // the Chromium tree.
+ virtual void InitializeCastService(id tab_model) const;
Olivier 2016/10/06 09:26:45 The name suggests that this will be called only on
rohitrao (ping after 24h) 2016/10/06 12:07:42 Looking at the callsites, this is only ever called
+
+ // Adds Cast Sender API support to the given |web_state|, if it is supported
+ // by this embedder.
+ virtual void AddCastAPISupportToWebState(web::WebState* web_state,
+ NSString* tab_id) const;
+
// Returns whether safe browsing is enabled. See the comment on
// metrics_services_manager_client.h for details on |on_update_callback|.
virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback);
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/chrome_browser_provider.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698