Chromium Code Reviews| 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/NSObjCRuntime.h> | |
|
Eugene But (OOO till 7-30)
2016/08/16 16:45:48
Please import <Foundation/Foundation.h> instead:
stkhapugin
2016/08/18 12:54:19
Done.
| |
| 9 #include <stddef.h> | 10 #include <stddef.h> |
| 10 | 11 |
| 11 #include <memory> | 12 #include <memory> |
| 12 #include <string> | 13 #include <string> |
| 13 #include <vector> | 14 #include <vector> |
| 14 | 15 |
| 15 #include "base/callback_forward.h" | 16 #include "base/callback_forward.h" |
| 16 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 17 #include "components/favicon_base/favicon_callback.h" | 18 #include "components/favicon_base/favicon_callback.h" |
| 18 | 19 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 virtual void AssertBrowserContextKeyedFactoriesBuilt(); | 70 virtual void AssertBrowserContextKeyedFactoriesBuilt(); |
| 70 // Registers all prefs that will be used via a PrefService attached to a | 71 // Registers all prefs that will be used via a PrefService attached to a |
| 71 // Profile. | 72 // Profile. |
| 72 virtual void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 73 virtual void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 73 // Returns an UpdatableResourceProvider instance. | 74 // Returns an UpdatableResourceProvider instance. |
| 74 virtual UpdatableResourceProvider* GetUpdatableResourceProvider(); | 75 virtual UpdatableResourceProvider* GetUpdatableResourceProvider(); |
| 75 // Returns an infobar view conforming to the InfoBarViewProtocol. The returned | 76 // Returns an infobar view conforming to the InfoBarViewProtocol. The returned |
| 76 // object is retained. | 77 // object is retained. |
| 77 virtual InfoBarViewPlaceholder CreateInfoBarView( | 78 virtual InfoBarViewPlaceholder CreateInfoBarView( |
| 78 CGRect frame, | 79 CGRect frame, |
| 79 InfoBarViewDelegate* delegate); | 80 InfoBarViewDelegate* delegate) NS_RETURNS_RETAINED; |
|
Eugene But (OOO till 7-30)
2016/08/16 16:45:48
C++ Style Guide recommends to avoid returning unow
stkhapugin
2016/08/16 16:51:49
I would argue that all of these {C++ methods|C fun
| |
| 80 // Returns an instance of a signin resources provider. | 81 // Returns an instance of a signin resources provider. |
| 81 virtual SigninResourcesProvider* GetSigninResourcesProvider(); | 82 virtual SigninResourcesProvider* GetSigninResourcesProvider(); |
| 82 // Returns an instance of a Chrome identity service. | 83 // Returns an instance of a Chrome identity service. |
| 83 virtual ChromeIdentityService* GetChromeIdentityService(); | 84 virtual ChromeIdentityService* GetChromeIdentityService(); |
| 84 // Returns an instance of a LiveTabContextProvider. | 85 // Returns an instance of a LiveTabContextProvider. |
| 85 virtual LiveTabContextProvider* GetLiveTabContextProvider(); | 86 virtual LiveTabContextProvider* GetLiveTabContextProvider(); |
| 86 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider(); | 87 virtual GeolocationUpdaterProvider* GetGeolocationUpdaterProvider(); |
| 87 // Returns "enabled", "disabled", or "default". | 88 // Returns "enabled", "disabled", or "default". |
| 88 virtual std::string DataReductionProxyAvailability(); | 89 virtual std::string DataReductionProxyAvailability(); |
| 89 // Returns the distribution brand code. | 90 // Returns the distribution brand code. |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 111 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); | 112 virtual bool IsSafeBrowsingEnabled(const base::Closure& on_update_callback); |
| 112 | 113 |
| 113 // Returns the SyncedWindowDelegatesGetter implementation. | 114 // Returns the SyncedWindowDelegatesGetter implementation. |
| 114 virtual std::unique_ptr<browser_sync::SyncedWindowDelegatesGetter> | 115 virtual std::unique_ptr<browser_sync::SyncedWindowDelegatesGetter> |
| 115 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); | 116 CreateSyncedWindowDelegatesGetter(ios::ChromeBrowserState* browser_state); |
| 116 }; | 117 }; |
| 117 | 118 |
| 118 } // namespace ios | 119 } // namespace ios |
| 119 | 120 |
| 120 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ | 121 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_CHROME_BROWSER_PROVIDER_H_ |
| OLD | NEW |