Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: ios/public/provider/chrome/browser/chrome_browser_provider.h

Issue 1456783004: Remove configuration policy on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up gyp and DEPS Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include <stddef.h> 9 #include <stddef.h>
10 #include <string> 10 #include <string>
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 namespace metrics { 28 namespace metrics {
29 class MetricsService; 29 class MetricsService;
30 } 30 }
31 31
32 namespace net { 32 namespace net {
33 class URLRequestContextGetter; 33 class URLRequestContextGetter;
34 } 34 }
35 35
36 namespace policy {
37 class BrowserPolicyConnector;
38 }
39
40 namespace rappor { 36 namespace rappor {
41 class RapporService; 37 class RapporService;
42 } 38 }
43 39
44 namespace user_prefs { 40 namespace user_prefs {
45 class PrefRegistrySyncable; 41 class PrefRegistrySyncable;
46 } 42 }
47 43
48 namespace variations { 44 namespace variations {
49 class VariationsService; 45 class VariationsService;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Returns the metrics service. 124 // Returns the metrics service.
129 virtual metrics::MetricsService* GetMetricsService(); 125 virtual metrics::MetricsService* GetMetricsService();
130 // Returns the variations service. 126 // Returns the variations service.
131 virtual variations::VariationsService* GetVariationsService(); 127 virtual variations::VariationsService* GetVariationsService();
132 // Returns an instance of a CardUnmaskPromptView used to unmask Wallet cards. 128 // Returns an instance of a CardUnmaskPromptView used to unmask Wallet cards.
133 // The view is responsible for its own lifetime. 129 // The view is responsible for its own lifetime.
134 virtual autofill::CardUnmaskPromptView* CreateCardUnmaskPromptView( 130 virtual autofill::CardUnmaskPromptView* CreateCardUnmaskPromptView(
135 autofill::CardUnmaskPromptController* controller); 131 autofill::CardUnmaskPromptController* controller);
136 // Returns risk data used in Wallet requests. 132 // Returns risk data used in Wallet requests.
137 virtual std::string GetRiskData(); 133 virtual std::string GetRiskData();
138 // Starts and manages the policy system.
139 virtual policy::BrowserPolicyConnector* GetBrowserPolicyConnector();
140 // Returns the RapporService. May be null. 134 // Returns the RapporService. May be null.
141 virtual rappor::RapporService* GetRapporService(); 135 virtual rappor::RapporService* GetRapporService();
142 // Returns whether there is an Off-The-Record session active. 136 // Returns whether there is an Off-The-Record session active.
143 virtual bool IsOffTheRecordSessionActive(); 137 virtual bool IsOffTheRecordSessionActive();
144 // Get the favicon for |page_url| and run |callback| with result when loaded. 138 // Get the favicon for |page_url| and run |callback| with result when loaded.
145 // Note. |callback| is always run asynchronously. 139 // Note. |callback| is always run asynchronously.
146 virtual void GetFaviconForURL( 140 virtual void GetFaviconForURL(
147 ChromeBrowserState* browser_state, 141 ChromeBrowserState* browser_state,
148 const GURL& page_url, 142 const GURL& page_url,
149 const std::vector<int>& desired_sizes_in_pixel, 143 const std::vector<int>& desired_sizes_in_pixel,
150 const favicon_base::FaviconResultsCallback& callback) const; 144 const favicon_base::FaviconResultsCallback& callback) const;
151 145
152 // Returns whether safe browsing is enabled. See the comment on 146 // Returns whether safe browsing is enabled. See the comment on
153 // metrics_services_manager_client.h for details on |on_update_callback|. 147 // metrics_services_manager_client.h for details on |on_update_callback|.
154 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); 148 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback);
155 149
156 // Called when the IOSChromeMetricsServiceClientManager instance is 150 // Called when the IOSChromeMetricsServiceClientManager instance is
157 // destroyed. 151 // destroyed.
158 virtual void OnMetricsServicesManagerClientDestroyed(); 152 virtual void OnMetricsServicesManagerClientDestroyed();
159 }; 153 };
160 154
161 } // namespace ios 155 } // namespace ios
162 156
163 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ 157 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_
OLDNEW
« no previous file with comments | « ios/chrome/test/testing_application_context.cc ('k') | ios/public/provider/chrome/browser/chrome_browser_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698