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

Side by Side Diff: chrome/browser/invalidation/profile_invalidation_provider_factory.h

Issue 822523003: Implement device-local account policy pushing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@f_2_442800_switch_device_cloud_policy_invalidator
Patch Set: Rebased. Created 5 years, 10 months 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_ 5 #ifndef CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_
6 #define CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_ 6 #define CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
11 11
12 namespace policy { 12 namespace policy {
13 class AffiliatedInvalidationServiceProviderTest; 13 class AffiliatedInvalidationServiceProviderImplTest;
14 class DeviceCloudPolicyInvalidatorTest;
15 } 14 }
16 15
17 namespace user_prefs { 16 namespace user_prefs {
18 class PrefRegistrySyncable; 17 class PrefRegistrySyncable;
19 } 18 }
20 19
21 namespace syncer { 20 namespace syncer {
22 class Invalidator; 21 class Invalidator;
23 } 22 }
24 23
(...skipping 17 matching lines...) Expand all
42 static ProfileInvalidationProvider* GetForProfile(Profile* profile); 41 static ProfileInvalidationProvider* GetForProfile(Profile* profile);
43 42
44 static ProfileInvalidationProviderFactory* GetInstance(); 43 static ProfileInvalidationProviderFactory* GetInstance();
45 44
46 // Switches service creation to go through |testing_factory| for all browser 45 // Switches service creation to go through |testing_factory| for all browser
47 // contexts. 46 // contexts.
48 void RegisterTestingFactory(TestingFactoryFunction testing_factory); 47 void RegisterTestingFactory(TestingFactoryFunction testing_factory);
49 48
50 private: 49 private:
51 friend class ProfileInvalidationProviderFactoryTestBase; 50 friend class ProfileInvalidationProviderFactoryTestBase;
52 friend class policy::AffiliatedInvalidationServiceProviderTest; 51 friend class policy::AffiliatedInvalidationServiceProviderImplTest;
53 friend class policy::DeviceCloudPolicyInvalidatorTest;
54 friend struct DefaultSingletonTraits<ProfileInvalidationProviderFactory>; 52 friend struct DefaultSingletonTraits<ProfileInvalidationProviderFactory>;
55 53
56 ProfileInvalidationProviderFactory(); 54 ProfileInvalidationProviderFactory();
57 ~ProfileInvalidationProviderFactory() override; 55 ~ProfileInvalidationProviderFactory() override;
58 56
59 // BrowserContextKeyedServiceFactory: 57 // BrowserContextKeyedServiceFactory:
60 KeyedService* BuildServiceInstanceFor( 58 KeyedService* BuildServiceInstanceFor(
61 content::BrowserContext* context) const override; 59 content::BrowserContext* context) const override;
62 void RegisterProfilePrefs( 60 void RegisterProfilePrefs(
63 user_prefs::PrefRegistrySyncable* registry) override; 61 user_prefs::PrefRegistrySyncable* registry) override;
64 62
65 TestingFactoryFunction testing_factory_; 63 TestingFactoryFunction testing_factory_;
66 64
67 DISALLOW_COPY_AND_ASSIGN(ProfileInvalidationProviderFactory); 65 DISALLOW_COPY_AND_ASSIGN(ProfileInvalidationProviderFactory);
68 }; 66 };
69 67
70 } // namespace invalidation 68 } // namespace invalidation
71 69
72 #endif // CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_ 70 #endif // CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/device_settings_test_helper.cc ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698