| 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 // |main_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 main_tab_model) const; |
| 131 |
| 132 // Attaches any embedder-specific tab helpers to the given |web_state|. The |
| 133 // owning |tab| is included for helpers that need access to information that |
| 134 // is not yet available through web::WebState. |
| 135 // TODO(rohitrao): Change from |id| to |Tab*| once Tab is moved into the |
| 136 // Chromium tree. |
| 137 virtual void AttachTabHelpers(web::WebState* web_state, id tab) const; |
| 138 |
| 122 // Returns whether safe browsing is enabled. See the comment on | 139 // Returns whether safe browsing is enabled. See the comment on |
| 123 // metrics_services_manager_client.h for details on |on_update_callback|. | 140 // metrics_services_manager_client.h for details on |on_update_callback|. |
| 124 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); | 141 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); |
| 125 | 142 |
| 126 // Returns the SyncedWindowDelegatesGetter implementation. | 143 // Returns the SyncedWindowDelegatesGetter implementation. |
| 127 virtual std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter> | 144 virtual std::unique_ptr<sync_sessions::SyncedWindowDelegatesGetter> |
| 128 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); | 145 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); |
| 129 }; | 146 }; |
| 130 | 147 |
| 131 } // namespace ios | 148 } // namespace ios |
| 132 | 149 |
| 133 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ | 150 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ |
| OLD | NEW |