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

Side by Side Diff: chrome/browser/extensions/signin/gaia_auth_extension_loader.h

Issue 197413002: Move extensions-related files to using //components/keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/menu_manager_unittest.cc ('k') | chrome/browser/extensions/test_extension_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698