| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_KEYED_SERVICE_PROVIDER_H_ | 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_ |
| 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_ | 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // Returns the invalidation::ProfileInvalidationProvider factory for | 77 // Returns the invalidation::ProfileInvalidationProvider factory for |
| 78 // dependencies. | 78 // dependencies. |
| 79 virtual KeyedServiceBaseFactory* GetProfileInvalidationProviderFactory() = 0; | 79 virtual KeyedServiceBaseFactory* GetProfileInvalidationProviderFactory() = 0; |
| 80 | 80 |
| 81 // Returns an instance of invalidation::ProfileInvalidationProvider tied to | 81 // Returns an instance of invalidation::ProfileInvalidationProvider tied to |
| 82 // |browser_state|. | 82 // |browser_state|. |
| 83 virtual invalidation::ProfileInvalidationProvider* | 83 virtual invalidation::ProfileInvalidationProvider* |
| 84 GetProfileInvalidationProviderForBrowserState( | 84 GetProfileInvalidationProviderForBrowserState( |
| 85 ChromeBrowserState* browser_state) = 0; | 85 ChromeBrowserState* browser_state) = 0; |
| 86 | 86 |
| 87 // Returns the data_reduction_proxy::DataReductionProxySettings factory for |
| 88 // dependencies. |
| 89 virtual KeyedServiceBaseFactory* GetDataReductionProxySettingsFactory() = 0; |
| 90 |
| 87 // Returns an instance of data_reduction_proxy::DataReductionProxySettings | 91 // Returns an instance of data_reduction_proxy::DataReductionProxySettings |
| 88 // tied to |browser_state|. | 92 // tied to |browser_state|. |
| 89 virtual data_reduction_proxy::DataReductionProxySettings* | 93 virtual data_reduction_proxy::DataReductionProxySettings* |
| 90 GetDataReductionProxySettingsForBrowserState( | 94 GetDataReductionProxySettingsForBrowserState( |
| 91 ios::ChromeBrowserState* browser_state) = 0; | 95 ios::ChromeBrowserState* browser_state) = 0; |
| 92 | 96 |
| 93 private: | 97 private: |
| 94 DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider); | 98 DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider); |
| 95 }; | 99 }; |
| 96 | 100 |
| 97 } // namespace ios | 101 } // namespace ios |
| 98 | 102 |
| 99 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_ | 103 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_ |
| OLD | NEW |