| OLD | NEW | 
|   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" | 
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  42  |  42  | 
|  43   static ProfileInvalidationProviderFactory* GetInstance(); |  43   static ProfileInvalidationProviderFactory* GetInstance(); | 
|  44  |  44  | 
|  45   // Switches service creation to go through |testing_factory| for all browser |  45   // Switches service creation to go through |testing_factory| for all browser | 
|  46   // contexts. |  46   // contexts. | 
|  47   void RegisterTestingFactory(TestingFactoryFunction testing_factory); |  47   void RegisterTestingFactory(TestingFactoryFunction testing_factory); | 
|  48  |  48  | 
|  49  private: |  49  private: | 
|  50   friend class ProfileInvalidationProviderFactoryTestBase; |  50   friend class ProfileInvalidationProviderFactoryTestBase; | 
|  51   friend class policy::AffiliatedInvalidationServiceProviderImplTest; |  51   friend class policy::AffiliatedInvalidationServiceProviderImplTest; | 
|  52   friend struct DefaultSingletonTraits<ProfileInvalidationProviderFactory>; |  52   friend struct base::DefaultSingletonTraits< | 
 |  53       ProfileInvalidationProviderFactory>; | 
|  53  |  54  | 
|  54   ProfileInvalidationProviderFactory(); |  55   ProfileInvalidationProviderFactory(); | 
|  55   ~ProfileInvalidationProviderFactory() override; |  56   ~ProfileInvalidationProviderFactory() override; | 
|  56  |  57  | 
|  57   // BrowserContextKeyedServiceFactory: |  58   // BrowserContextKeyedServiceFactory: | 
|  58   KeyedService* BuildServiceInstanceFor( |  59   KeyedService* BuildServiceInstanceFor( | 
|  59       content::BrowserContext* context) const override; |  60       content::BrowserContext* context) const override; | 
|  60   void RegisterProfilePrefs( |  61   void RegisterProfilePrefs( | 
|  61       user_prefs::PrefRegistrySyncable* registry) override; |  62       user_prefs::PrefRegistrySyncable* registry) override; | 
|  62  |  63  | 
|  63   TestingFactoryFunction testing_factory_; |  64   TestingFactoryFunction testing_factory_; | 
|  64  |  65  | 
|  65   DISALLOW_COPY_AND_ASSIGN(ProfileInvalidationProviderFactory); |  66   DISALLOW_COPY_AND_ASSIGN(ProfileInvalidationProviderFactory); | 
|  66 }; |  67 }; | 
|  67  |  68  | 
|  68 }  // namespace invalidation |  69 }  // namespace invalidation | 
|  69  |  70  | 
|  70 #endif  // CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_ |  71 #endif  // CHROME_BROWSER_INVALIDATION_PROFILE_INVALIDATION_PROVIDER_FACTORY_H_ | 
| OLD | NEW |