| 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 OmahaServiceProvider; | 23 class OmahaServiceProvider; |
| 24 class PrefService; | |
| 25 class SpotlightProvider; | 24 class SpotlightProvider; |
| 26 class UserFeedbackProvider; | 25 class UserFeedbackProvider; |
| 27 class VoiceSearchProvider; | 26 class VoiceSearchProvider; |
| 28 | 27 |
| 29 namespace autofill { | 28 namespace autofill { |
| 30 class CardUnmaskPromptController; | 29 class CardUnmaskPromptController; |
| 31 class CardUnmaskPromptView; | 30 class CardUnmaskPromptView; |
| 32 } | 31 } |
| 33 | 32 |
| 34 namespace web { | 33 namespace web { |
| 35 class WebState; | 34 class WebState; |
| 36 } | 35 } |
| 37 | 36 |
| 38 namespace sync_sessions { | 37 namespace sync_sessions { |
| 39 class SyncedWindowDelegatesGetter; | 38 class SyncedWindowDelegatesGetter; |
| 40 } | 39 } |
| 41 | 40 |
| 42 namespace user_prefs { | |
| 43 class PrefRegistrySyncable; | |
| 44 } | |
| 45 | |
| 46 @protocol AppRatingPrompt; | 41 @protocol AppRatingPrompt; |
| 47 @protocol InfoBarViewProtocol; | 42 @protocol InfoBarViewProtocol; |
| 48 @protocol LogoVendor; | 43 @protocol LogoVendor; |
| 49 @protocol TextFieldStyling; | 44 @protocol TextFieldStyling; |
| 50 @protocol NativeAppWhitelistManager; | 45 @protocol NativeAppWhitelistManager; |
| 51 @class UITextField; | 46 @class UITextField; |
| 52 @class UIView; | 47 @class UIView; |
| 53 @protocol UrlLoader; | 48 @protocol UrlLoader; |
| 54 typedef UIView<InfoBarViewProtocol>* InfoBarViewPlaceholder; | 49 typedef UIView<InfoBarViewProtocol>* InfoBarViewPlaceholder; |
| 55 | 50 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 80 public: | 75 public: |
| 81 // The constructor is called before web startup. | 76 // The constructor is called before web startup. |
| 82 ChromeBrowserProvider(); | 77 ChromeBrowserProvider(); |
| 83 virtual ~ChromeBrowserProvider(); | 78 virtual ~ChromeBrowserProvider(); |
| 84 | 79 |
| 85 // This is called after web startup. | 80 // This is called after web startup. |
| 86 virtual void Initialize() const; | 81 virtual void Initialize() const; |
| 87 | 82 |
| 88 // Asserts all iOS-specific |BrowserContextKeyedServiceFactory| are built. | 83 // Asserts all iOS-specific |BrowserContextKeyedServiceFactory| are built. |
| 89 virtual void AssertBrowserContextKeyedFactoriesBuilt(); | 84 virtual void AssertBrowserContextKeyedFactoriesBuilt(); |
| 90 // Registers all prefs that will be used via a PrefService attached to a | |
| 91 // Profile. | |
| 92 virtual void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | |
| 93 // Returns an instance of a signing error provider. | 85 // Returns an instance of a signing error provider. |
| 94 virtual SigninErrorProvider* GetSigninErrorProvider(); | 86 virtual SigninErrorProvider* GetSigninErrorProvider(); |
| 95 // Returns an instance of a signin resources provider. | 87 // Returns an instance of a signin resources provider. |
| 96 virtual SigninResourcesProvider* GetSigninResourcesProvider(); | 88 virtual SigninResourcesProvider* GetSigninResourcesProvider(); |
| 97 // Sets the current instance of Chrome identity service. Used for testing. | 89 // Sets the current instance of Chrome identity service. Used for testing. |
| 98 virtual void SetChromeIdentityServiceForTesting( | 90 virtual void SetChromeIdentityServiceForTesting( |
| 99 std::unique_ptr<ChromeIdentityService> service); | 91 std::unique_ptr<ChromeIdentityService> service); |
| 100 // Returns an instance of a Chrome identity service. | 92 // Returns an instance of a Chrome identity service. |
| 101 virtual ChromeIdentityService* GetChromeIdentityService(); | 93 virtual ChromeIdentityService* GetChromeIdentityService(); |
| 102 // Returns an instance of a LiveTabContextProvider. | 94 // Returns an instance of a LiveTabContextProvider. |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // not dismiss them. | 174 // not dismiss them. |
| 183 virtual void LogIfModalViewsArePresented() const; | 175 virtual void LogIfModalViewsArePresented() const; |
| 184 | 176 |
| 185 // Returns an instance of the spotlight provider. | 177 // Returns an instance of the spotlight provider. |
| 186 virtual SpotlightProvider* GetSpotlightProvider() const; | 178 virtual SpotlightProvider* GetSpotlightProvider() const; |
| 187 }; | 179 }; |
| 188 | 180 |
| 189 } // namespace ios | 181 } // namespace ios |
| 190 | 182 |
| 191 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ | 183 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ |
| OLD | NEW |