| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSIONS_SIGNIN_GAIA_AUTH_EXTENSION_LOADER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_SIGNIN_GAIA_AUTH_EXTENSION_LOADER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_SIGNIN_GAIA_AUTH_EXTENSION_LOADER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_SIGNIN_GAIA_AUTH_EXTENSION_LOADER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "extensions/browser/browser_context_keyed_api_factory.h" | 9 #include "extensions/browser/browser_context_keyed_api_factory.h" |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 static GaiaAuthExtensionLoader* Get(content::BrowserContext* context); | 28 static GaiaAuthExtensionLoader* Get(content::BrowserContext* context); |
| 29 | 29 |
| 30 // BrowserContextKeyedAPI implementation. | 30 // BrowserContextKeyedAPI implementation. |
| 31 static BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>* | 31 static BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>* |
| 32 GetFactoryInstance(); | 32 GetFactoryInstance(); |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 friend class BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>; | 35 friend class BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>; |
| 36 | 36 |
| 37 // BrowserContextKeyedService overrides: | 37 // KeyedService overrides: |
| 38 virtual void Shutdown() OVERRIDE; | 38 virtual void Shutdown() OVERRIDE; |
| 39 | 39 |
| 40 // BrowserContextKeyedAPI implementation. | 40 // BrowserContextKeyedAPI implementation. |
| 41 static const char* service_name() { | 41 static const char* service_name() { |
| 42 return "GaiaAuthExtensionLoader"; | 42 return "GaiaAuthExtensionLoader"; |
| 43 } | 43 } |
| 44 static const bool kServiceRedirectedInIncognito = true; | 44 static const bool kServiceRedirectedInIncognito = true; |
| 45 | 45 |
| 46 content::BrowserContext* browser_context_; | 46 content::BrowserContext* browser_context_; |
| 47 int load_count_; | 47 int load_count_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(GaiaAuthExtensionLoader); | 49 DISALLOW_COPY_AND_ASSIGN(GaiaAuthExtensionLoader); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace extensions | 52 } // namespace extensions |
| 53 | 53 |
| 54 #endif // CHROME_BROWSER_EXTENSIONS_SIGNIN_GAIA_AUTH_EXTENSION_LOADER_H_ | 54 #endif // CHROME_BROWSER_EXTENSIONS_SIGNIN_GAIA_AUTH_EXTENSION_LOADER_H_ |
| OLD | NEW |