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..5292a44ec5f1225db0361430e54b52f556f041d5 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 |
+ // |main_tab_model| is created. |
+ // TODO(rohitrao): Change from |id| to |TabModel*| once TabModel is moved into |
+ // the Chromium tree. |
+ virtual void InitializeCastService(id main_tab_model) const; |
+ |
+ // Attaches any embedder-specific tab helpers to the given |web_state|. The |
+ // owning |tab| is included for helpers that need access to information that |
+ // is not yet available through web::WebState. |
+ virtual void AttachTabHelpers(web::WebState* web_state, id tab) const; |
sdefresne
2016/10/06 14:56:43
nit:
// TODO(rohitrao): Change from |id| to |Tab*
rohitrao (ping after 24h)
2016/10/06 15:02:43
Done.
|
+ |
// 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); |