| 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_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_FACTOR
Y_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_FACTOR
Y_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_FACTOR
Y_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_FACTOR
Y_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 static void SetDeviceSettingsServiceForTesting( | 37 static void SetDeviceSettingsServiceForTesting( |
| 38 DeviceSettingsService* device_settings_service); | 38 DeviceSettingsService* device_settings_service); |
| 39 | 39 |
| 40 scoped_refptr<ownership::OwnerKeyUtil> GetOwnerKeyUtil(); | 40 scoped_refptr<ownership::OwnerKeyUtil> GetOwnerKeyUtil(); |
| 41 | 41 |
| 42 void SetOwnerKeyUtilForTesting( | 42 void SetOwnerKeyUtilForTesting( |
| 43 const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util); | 43 const scoped_refptr<ownership::OwnerKeyUtil>& owner_key_util); |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 friend struct DefaultSingletonTraits<OwnerSettingsServiceChromeOSFactory>; | 46 friend struct base::DefaultSingletonTraits< |
| 47 OwnerSettingsServiceChromeOSFactory>; |
| 47 | 48 |
| 48 OwnerSettingsServiceChromeOSFactory(); | 49 OwnerSettingsServiceChromeOSFactory(); |
| 49 ~OwnerSettingsServiceChromeOSFactory() override; | 50 ~OwnerSettingsServiceChromeOSFactory() override; |
| 50 | 51 |
| 51 static KeyedService* BuildInstanceFor(content::BrowserContext* context); | 52 static KeyedService* BuildInstanceFor(content::BrowserContext* context); |
| 52 | 53 |
| 53 // BrowserContextKeyedBaseFactory overrides: | 54 // BrowserContextKeyedBaseFactory overrides: |
| 54 bool ServiceIsCreatedWithBrowserContext() const override; | 55 bool ServiceIsCreatedWithBrowserContext() const override; |
| 55 | 56 |
| 56 // BrowserContextKeyedServiceFactory implementation: | 57 // BrowserContextKeyedServiceFactory implementation: |
| 57 KeyedService* BuildServiceInstanceFor( | 58 KeyedService* BuildServiceInstanceFor( |
| 58 content::BrowserContext* browser_context) const override; | 59 content::BrowserContext* browser_context) const override; |
| 59 | 60 |
| 60 scoped_refptr<ownership::OwnerKeyUtil> owner_key_util_; | 61 scoped_refptr<ownership::OwnerKeyUtil> owner_key_util_; |
| 61 | 62 |
| 62 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceChromeOSFactory); | 63 DISALLOW_COPY_AND_ASSIGN(OwnerSettingsServiceChromeOSFactory); |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 } // namespace chromeos | 66 } // namespace chromeos |
| 66 | 67 |
| 67 #endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_FAC
TORY_H_ | 68 #endif // CHROME_BROWSER_CHROMEOS_OWNERSHIP_OWNER_SETTINGS_SERVICE_CHROMEOS_FAC
TORY_H_ |
| OLD | NEW |