| 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> |
| 11 | 11 |
| 12 #include <memory> | 12 #include <memory> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/callback_forward.h" | 16 #include "base/callback_forward.h" |
| 17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 18 #include "components/favicon_base/favicon_callback.h" | 18 #include "components/favicon_base/favicon_callback.h" |
| 19 | 19 |
| 20 class AppDistributionProvider; | 20 class AppDistributionProvider; |
| 21 class BrandedImageProvider; | 21 class BrandedImageProvider; |
| 22 class GURL; | 22 class GURL; |
| 23 class InfoBarViewDelegate; | |
| 24 class OmahaServiceProvider; | 23 class OmahaServiceProvider; |
| 25 class PrefService; | 24 class PrefService; |
| 26 class SpotlightProvider; | 25 class SpotlightProvider; |
| 27 class UserFeedbackProvider; | 26 class UserFeedbackProvider; |
| 28 class VoiceSearchProvider; | 27 class VoiceSearchProvider; |
| 29 | 28 |
| 30 namespace autofill { | 29 namespace autofill { |
| 31 class CardUnmaskPromptController; | 30 class CardUnmaskPromptController; |
| 32 class CardUnmaskPromptView; | 31 class CardUnmaskPromptView; |
| 33 } | 32 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 virtual ~ChromeBrowserProvider(); | 83 virtual ~ChromeBrowserProvider(); |
| 85 | 84 |
| 86 // This is called after web startup. | 85 // This is called after web startup. |
| 87 virtual void Initialize() const; | 86 virtual void Initialize() const; |
| 88 | 87 |
| 89 // Asserts all iOS-specific |BrowserContextKeyedServiceFactory| are built. | 88 // Asserts all iOS-specific |BrowserContextKeyedServiceFactory| are built. |
| 90 virtual void AssertBrowserContextKeyedFactoriesBuilt(); | 89 virtual void AssertBrowserContextKeyedFactoriesBuilt(); |
| 91 // Registers all prefs that will be used via a PrefService attached to a | 90 // Registers all prefs that will be used via a PrefService attached to a |
| 92 // Profile. | 91 // Profile. |
| 93 virtual void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 92 virtual void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 94 // Returns an infobar view conforming to the InfoBarViewProtocol. The returned | |
| 95 // object is retained. | |
| 96 virtual InfoBarViewPlaceholder CreateInfoBarView( | |
| 97 CGRect frame, | |
| 98 InfoBarViewDelegate* delegate) NS_RETURNS_RETAINED; | |
| 99 // Returns an instance of a signing error provider. | 93 // Returns an instance of a signing error provider. |
| 100 virtual SigninErrorProvider* GetSigninErrorProvider(); | 94 virtual SigninErrorProvider* GetSigninErrorProvider(); |
| 101 // Returns an instance of a signin resources provider. | 95 // Returns an instance of a signin resources provider. |
| 102 virtual SigninResourcesProvider* GetSigninResourcesProvider(); | 96 virtual SigninResourcesProvider* GetSigninResourcesProvider(); |
| 103 // Sets the current instance of Chrome identity service. Used for testing. | 97 // Sets the current instance of Chrome identity service. Used for testing. |
| 104 virtual void SetChromeIdentityServiceForTesting( | 98 virtual void SetChromeIdentityServiceForTesting( |
| 105 std::unique_ptr<ChromeIdentityService> service); | 99 std::unique_ptr<ChromeIdentityService> service); |
| 106 // Returns an instance of a Chrome identity service. | 100 // Returns an instance of a Chrome identity service. |
| 107 virtual ChromeIdentityService* GetChromeIdentityService(); | 101 virtual ChromeIdentityService* GetChromeIdentityService(); |
| 108 // Returns an instance of a LiveTabContextProvider. | 102 // Returns an instance of a LiveTabContextProvider. |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // not dismiss them. | 182 // not dismiss them. |
| 189 virtual void LogIfModalViewsArePresented() const; | 183 virtual void LogIfModalViewsArePresented() const; |
| 190 | 184 |
| 191 // Returns an instance of the spotlight provider. | 185 // Returns an instance of the spotlight provider. |
| 192 virtual SpotlightProvider* GetSpotlightProvider() const; | 186 virtual SpotlightProvider* GetSpotlightProvider() const; |
| 193 }; | 187 }; |
| 194 | 188 |
| 195 } // namespace ios | 189 } // namespace ios |
| 196 | 190 |
| 197 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ | 191 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ |
| OLD | NEW |