OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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_ |
OLD | NEW |