| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_FACTORY_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_FACTORY_H_ | 6 #define CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
| 9 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 9 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 private: | 47 private: |
| 48 friend struct DefaultSingletonTraits<ProfileOAuth2TokenServiceFactory>; | 48 friend struct DefaultSingletonTraits<ProfileOAuth2TokenServiceFactory>; |
| 49 | 49 |
| 50 #if defined(OS_ANDROID) | 50 #if defined(OS_ANDROID) |
| 51 typedef AndroidProfileOAuth2TokenService PlatformSpecificOAuth2TokenService; | 51 typedef AndroidProfileOAuth2TokenService PlatformSpecificOAuth2TokenService; |
| 52 #else | 52 #else |
| 53 typedef MutableProfileOAuth2TokenService PlatformSpecificOAuth2TokenService; | 53 typedef MutableProfileOAuth2TokenService PlatformSpecificOAuth2TokenService; |
| 54 #endif | 54 #endif |
| 55 | 55 |
| 56 ProfileOAuth2TokenServiceFactory(); | 56 ProfileOAuth2TokenServiceFactory(); |
| 57 virtual ~ProfileOAuth2TokenServiceFactory(); | 57 ~ProfileOAuth2TokenServiceFactory() override; |
| 58 | 58 |
| 59 // BrowserContextKeyedServiceFactory implementation. | 59 // BrowserContextKeyedServiceFactory implementation. |
| 60 virtual KeyedService* BuildServiceInstanceFor( | 60 KeyedService* BuildServiceInstanceFor( |
| 61 content::BrowserContext* context) const override; | 61 content::BrowserContext* context) const override; |
| 62 | 62 |
| 63 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenServiceFactory); | 63 DISALLOW_COPY_AND_ASSIGN(ProfileOAuth2TokenServiceFactory); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 #endif // CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_FACTORY_H_ | 66 #endif // CHROME_BROWSER_SIGNIN_PROFILE_OAUTH2_TOKEN_SERVICE_FACTORY_H_ |
| OLD | NEW |