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 InfoBarViewProtocol; | 47 @protocol InfoBarViewProtocol; |
44 @protocol TextFieldStyling; | 48 @protocol TextFieldStyling; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 // Note. |callback| is always run asynchronously. | 112 // Note. |callback| is always run asynchronously. |
109 virtual void GetFaviconForURL( | 113 virtual void GetFaviconForURL( |
110 ChromeBrowserState* browser_state, | 114 ChromeBrowserState* browser_state, |
111 const GURL& page_url, | 115 const GURL& page_url, |
112 const std::vector<int>& desired_sizes_in_pixel, | 116 const std::vector<int>& desired_sizes_in_pixel, |
113 const favicon_base::FaviconResultsCallback& callback) const; | 117 const favicon_base::FaviconResultsCallback& callback) const; |
114 // Creates and returns a new styled text field with the given |frame|. | 118 // Creates and returns a new styled text field with the given |frame|. |
115 virtual UITextField<TextFieldStyling>* CreateStyledTextField( | 119 virtual UITextField<TextFieldStyling>* CreateStyledTextField( |
116 CGRect frame) const NS_RETURNS_RETAINED; | 120 CGRect frame) const NS_RETURNS_RETAINED; |
117 | 121 |
122 // Initializes the cast service. Should be called soon after the given | |
123 // |tab_model| is created. | |
124 // TODO(rohitrao): Change from |id| to |TabModel*| once TabModel is moved into | |
rohitrao (ping after 24h)
2016/10/05 20:19:56
Thoughts on using id here instead of TabModel*? A
| |
125 // the Chromium tree. | |
126 virtual void InitializeCastService(id tab_model) const; | |
127 | |
128 // Adds Cast Sender API support to the given |web_state|, if it is supported | |
129 // by this embedder. | |
130 virtual void AddCastAPISupportToWebState(web::WebState* web_state, | |
131 NSString* tab_id) const; | |
rohitrao (ping after 24h)
2016/10/05 20:19:56
I thought about having this API take a std::string
| |
132 | |
118 // Returns whether safe browsing is enabled. See the comment on | 133 // Returns whether safe browsing is enabled. See the comment on |
119 // metrics_services_manager_client.h for details on |on_update_callback|. | 134 // metrics_services_manager_client.h for details on |on_update_callback|. |
120 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); | 135 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); |
121 | 136 |
122 // Returns the SyncedWindowDelegatesGetter implementation. | 137 // Returns the SyncedWindowDelegatesGetter implementation. |
123 virtual std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter> | 138 virtual std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter> |
124 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); | 139 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); |
125 }; | 140 }; |
126 | 141 |
127 } // namespace ios | 142 } // namespace ios |
128 | 143 |
129 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ | 144 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ |
OLD | NEW |