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

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

Issue 1466363002: Introduce IOSChromeProfileInvalidationProviderFactory (iOS) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/keyed_service_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 enum class ServiceAccessType; 11 enum class ServiceAccessType;
12 12
13 class KeyedServiceBaseFactory; 13 class KeyedServiceBaseFactory;
14 14
15 #if defined(ENABLE_CONFIGURATION_POLICY) 15 #if defined(ENABLE_CONFIGURATION_POLICY)
16 namespace bookmarks { 16 namespace bookmarks {
17 class ManagedBookmarkService; 17 class ManagedBookmarkService;
18 } 18 }
19 #endif 19 #endif
20 20
21 namespace data_reduction_proxy { 21 namespace data_reduction_proxy {
22 class DataReductionProxySettings; 22 class DataReductionProxySettings;
23 } 23 }
24 24
25 namespace invalidation {
26 class ProfileInvalidationProvider;
27 }
28
29 namespace sync_driver { 25 namespace sync_driver {
30 class SyncService; 26 class SyncService;
31 } 27 }
32 28
33 namespace ios { 29 namespace ios {
34 30
35 class ChromeBrowserState; 31 class ChromeBrowserState;
36 class KeyedServiceProvider; 32 class KeyedServiceProvider;
37 33
38 // Registers and returns the global KeyedService provider. 34 // Registers and returns the global KeyedService provider.
(...skipping 28 matching lines...) Expand all
67 63
68 // Returns an instance of sync_driver::SyncService tied to |browser_state|. 64 // Returns an instance of sync_driver::SyncService tied to |browser_state|.
69 virtual sync_driver::SyncService* GetSyncServiceForBrowserState( 65 virtual sync_driver::SyncService* GetSyncServiceForBrowserState(
70 ChromeBrowserState* browser_state) = 0; 66 ChromeBrowserState* browser_state) = 0;
71 67
72 // Returns an instance of sync_driver::SyncService tied to |browser_state| if 68 // Returns an instance of sync_driver::SyncService tied to |browser_state| if
73 // there is one created already. 69 // there is one created already.
74 virtual sync_driver::SyncService* GetSyncServiceForBrowserStateIfExists( 70 virtual sync_driver::SyncService* GetSyncServiceForBrowserStateIfExists(
75 ChromeBrowserState* browser_state) = 0; 71 ChromeBrowserState* browser_state) = 0;
76 72
77 // Returns the invalidation::ProfileInvalidationProvider factory for
78 // dependencies.
79 virtual KeyedServiceBaseFactory* GetProfileInvalidationProviderFactory() = 0;
80
81 // Returns an instance of invalidation::ProfileInvalidationProvider tied to
82 // |browser_state|.
83 virtual invalidation::ProfileInvalidationProvider*
84 GetProfileInvalidationProviderForBrowserState(
85 ChromeBrowserState* browser_state) = 0;
86
87 // Returns the data_reduction_proxy::DataReductionProxySettings factory for 73 // Returns the data_reduction_proxy::DataReductionProxySettings factory for
88 // dependencies. 74 // dependencies.
89 virtual KeyedServiceBaseFactory* GetDataReductionProxySettingsFactory() = 0; 75 virtual KeyedServiceBaseFactory* GetDataReductionProxySettingsFactory() = 0;
90 76
91 // Returns an instance of data_reduction_proxy::DataReductionProxySettings 77 // Returns an instance of data_reduction_proxy::DataReductionProxySettings
92 // tied to |browser_state|. 78 // tied to |browser_state|.
93 virtual data_reduction_proxy::DataReductionProxySettings* 79 virtual data_reduction_proxy::DataReductionProxySettings*
94 GetDataReductionProxySettingsForBrowserState( 80 GetDataReductionProxySettingsForBrowserState(
95 ios::ChromeBrowserState* browser_state) = 0; 81 ios::ChromeBrowserState* browser_state) = 0;
96 82
97 private: 83 private:
98 DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider); 84 DISALLOW_COPY_AND_ASSIGN(KeyedServiceProvider);
99 }; 85 };
100 86
101 } // namespace ios 87 } // namespace ios
102 88
103 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_ 89 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_KEYED_SERVICE_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/keyed_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698