| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // Returns an instance of a Chrome identity service. | 84 // Returns an instance of a Chrome identity service. |
| 85 virtual ChromeIdentityService* GetChromeIdentityService(); | 85 virtual ChromeIdentityService* GetChromeIdentityService(); |
| 86 // Returns an instance of a GeolocationUpdaterProvider. | 86 // Returns an instance of a GeolocationUpdaterProvider. |
| 87 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider(); | 87 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider(); |
| 88 // Returns "enabled", "disabled", or "default". | 88 // Returns "enabled", "disabled", or "default". |
| 89 virtual std::string DataReductionProxyAvailability(); | 89 virtual std::string DataReductionProxyAvailability(); |
| 90 // Returns the distribution brand code. | 90 // Returns the distribution brand code. |
| 91 virtual std::string GetDistributionBrandCode(); | 91 virtual std::string GetDistributionBrandCode(); |
| 92 // Returns risk data used in Wallet requests. | 92 // Returns risk data used in Wallet requests. |
| 93 virtual std::string GetRiskData(); | 93 virtual std::string GetRiskData(); |
| 94 // Returns whether there is an Off-The-Record session active. | |
| 95 virtual bool IsOffTheRecordSessionActive(); | |
| 96 // Get the favicon for |page_url| and run |callback| with result when loaded. | 94 // Get the favicon for |page_url| and run |callback| with result when loaded. |
| 97 // Note. |callback| is always run asynchronously. | 95 // Note. |callback| is always run asynchronously. |
| 98 virtual void GetFaviconForURL( | 96 virtual void GetFaviconForURL( |
| 99 ChromeBrowserState* browser_state, | 97 ChromeBrowserState* browser_state, |
| 100 const GURL& page_url, | 98 const GURL& page_url, |
| 101 const std::vector<int>& desired_sizes_in_pixel, | 99 const std::vector<int>& desired_sizes_in_pixel, |
| 102 const favicon_base::FaviconResultsCallback& callback) const; | 100 const favicon_base::FaviconResultsCallback& callback) const; |
| 103 // Creates and returns a new styled text field with the given |frame|. | 101 // Creates and returns a new styled text field with the given |frame|. |
| 104 virtual UITextField<TextFieldStyling>* CreateStyledTextField( | 102 virtual UITextField<TextFieldStyling>* CreateStyledTextField( |
| 105 CGRect frame) const NS_RETURNS_RETAINED; | 103 CGRect frame) const NS_RETURNS_RETAINED; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // not dismiss them. | 157 // not dismiss them. |
| 160 virtual void LogIfModalViewsArePresented() const; | 158 virtual void LogIfModalViewsArePresented() const; |
| 161 | 159 |
| 162 // Returns an instance of the spotlight provider. | 160 // Returns an instance of the spotlight provider. |
| 163 virtual SpotlightProvider* GetSpotlightProvider() const; | 161 virtual SpotlightProvider* GetSpotlightProvider() const; |
| 164 }; | 162 }; |
| 165 | 163 |
| 166 } // namespace ios | 164 } // namespace ios |
| 167 | 165 |
| 168 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ | 166 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ |
| OLD | NEW |