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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
7 7
8 #include <CoreGraphics/CoreGraphics.h> 8 #include <CoreGraphics/CoreGraphics.h>
9 #import <Foundation/Foundation.h> 9 #import <Foundation/Foundation.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 14 matching lines...) Expand all
25 25
26 namespace autofill { 26 namespace autofill {
27 class CardUnmaskPromptController; 27 class CardUnmaskPromptController;
28 class CardUnmaskPromptView; 28 class CardUnmaskPromptView;
29 } 29 }
30 30
31 namespace net { 31 namespace net {
32 class URLRequestContextGetter; 32 class URLRequestContextGetter;
33 } 33 }
34 34
35 namespace web {
36 class WebState;
37 }
38
35 namespace sync_sessions { 39 namespace sync_sessions {
36 class SyncedWindowDelegatesGetter; 40 class SyncedWindowDelegatesGetter;
37 } 41 }
38 42
39 namespace user_prefs { 43 namespace user_prefs {
40 class PrefRegistrySyncable; 44 class PrefRegistrySyncable;
41 } 45 }
42 46
43 @protocol AppRatingPrompt; 47 @protocol AppRatingPrompt;
44 @protocol InfoBarViewProtocol; 48 @protocol InfoBarViewProtocol;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const GURL& page_url, 116 const GURL& page_url,
113 const std::vector<int>& desired_sizes_in_pixel, 117 const std::vector<int>& desired_sizes_in_pixel,
114 const favicon_base::FaviconResultsCallback& callback) const; 118 const favicon_base::FaviconResultsCallback& callback) const;
115 // Creates and returns a new styled text field with the given |frame|. 119 // Creates and returns a new styled text field with the given |frame|.
116 virtual UITextField<TextFieldStyling>* CreateStyledTextField( 120 virtual UITextField<TextFieldStyling>* CreateStyledTextField(
117 CGRect frame) const NS_RETURNS_RETAINED; 121 CGRect frame) const NS_RETURNS_RETAINED;
118 // Creates and returns an app ratings prompt object. Can return nil if app 122 // Creates and returns an app ratings prompt object. Can return nil if app
119 // ratings prompts are not supported by the provider. 123 // ratings prompts are not supported by the provider.
120 virtual id<AppRatingPrompt> CreateAppRatingPrompt() const NS_RETURNS_RETAINED; 124 virtual id<AppRatingPrompt> CreateAppRatingPrompt() const NS_RETURNS_RETAINED;
121 125
126 // Initializes the cast service. Should be called soon after the given
127 // |tab_model| is created.
128 // TODO(rohitrao): Change from |id| to |TabModel*| once TabModel is moved into
129 // the Chromium tree.
130 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
131
132 // Adds Cast Sender API support to the given |web_state|, if it is supported
133 // by this embedder.
134 virtual void AddCastAPISupportToWebState(web::WebState* web_state,
135 NSString* tab_id) const;
136
122 // Returns whether safe browsing is enabled. See the comment on 137 // Returns whether safe browsing is enabled. See the comment on
123 // metrics_services_manager_client.h for details on |on_update_callback|. 138 // metrics_services_manager_client.h for details on |on_update_callback|.
124 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); 139 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback);
125 140
126 // Returns the SyncedWindowDelegatesGetter implementation. 141 // Returns the SyncedWindowDelegatesGetter implementation.
127 virtual std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter> 142 virtual std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter>
128 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); 143 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state);
129 }; 144 };
130 145
131 } // namespace ios 146 } // namespace ios
132 147
133 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 148 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
OLDNEW
« 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