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 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
| 13 #include "base/callback_forward.h" |
13 #include "components/favicon_base/favicon_callback.h" | 14 #include "components/favicon_base/favicon_callback.h" |
14 | 15 |
15 class GURL; | 16 class GURL; |
16 class InfoBarViewDelegate; | 17 class InfoBarViewDelegate; |
17 class PrefRegistrySimple; | 18 class PrefRegistrySimple; |
18 class PrefService; | 19 class PrefService; |
19 class ProfileOAuth2TokenServiceIOSProvider; | 20 class ProfileOAuth2TokenServiceIOSProvider; |
20 | 21 |
21 namespace autofill { | 22 namespace autofill { |
22 class CardUnmaskPromptController; | 23 class CardUnmaskPromptController; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 virtual rappor::RapporService* GetRapporService(); | 132 virtual rappor::RapporService* GetRapporService(); |
132 // Returns whether there is an Off-The-Record session active. | 133 // Returns whether there is an Off-The-Record session active. |
133 virtual bool IsOffTheRecordSessionActive(); | 134 virtual bool IsOffTheRecordSessionActive(); |
134 // Get the favicon for |page_url| and run |callback| with result when loaded. | 135 // Get the favicon for |page_url| and run |callback| with result when loaded. |
135 // Note. |callback| is always run asynchronously. | 136 // Note. |callback| is always run asynchronously. |
136 virtual void GetFaviconForURL( | 137 virtual void GetFaviconForURL( |
137 ChromeBrowserState* browser_state, | 138 ChromeBrowserState* browser_state, |
138 const GURL& page_url, | 139 const GURL& page_url, |
139 const std::vector<int>& desired_sizes_in_pixel, | 140 const std::vector<int>& desired_sizes_in_pixel, |
140 const favicon_base::FaviconResultsCallback& callback) const; | 141 const favicon_base::FaviconResultsCallback& callback) const; |
| 142 |
| 143 // Returns whether safe browsing is enabled. See the comment on |
| 144 // metrics_services_manager_client.h for details on |on_update_callback|. |
| 145 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); |
| 146 |
| 147 // Called when the IOSChromeMetricsServiceClientManager instance is |
| 148 // destroyed. |
| 149 virtual void OnMetricsServicesManagerClientDestroyed(); |
141 }; | 150 }; |
142 | 151 |
143 } // namespace ios | 152 } // namespace ios |
144 | 153 |
145 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ | 154 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ |
OLD | NEW |