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

Side by Side Diff: chrome/browser/extensions/api/commands/command_service_factory.h

Issue 10387224: Rename ExtensionCommand* to Command* within the extension namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_EXTENSIONS_API_COMMANDS_EXTENSION_COMMAND_SERVICE_FACTORY _H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_COMMANDS_COMMAND_SERVICE_FACTORY_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_COMMANDS_EXTENSION_COMMAND_SERVICE_FACTORY _H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_COMMANDS_COMMAND_SERVICE_FACTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "chrome/browser/profiles/profile_keyed_service_factory.h" 10 #include "chrome/browser/profiles/profile_keyed_service_factory.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 class ExtensionCommandService; 13 class CommandService;
14 } 14 }
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 // Singleton that associate ExtensionCommandService objects with Profiles. 18 // Singleton that associate CommandService objects with Profiles.
19 class ExtensionCommandServiceFactory : public ProfileKeyedServiceFactory { 19 class CommandServiceFactory : public ProfileKeyedServiceFactory {
20 public: 20 public:
21 static ExtensionCommandService* GetForProfile(Profile* profile); 21 static CommandService* GetForProfile(Profile* profile);
22 22
23 static ExtensionCommandServiceFactory* GetInstance(); 23 static CommandServiceFactory* GetInstance();
24 24
25 // Overridden from ProfileKeyedBaseFactory: 25 // Overridden from ProfileKeyedBaseFactory:
26 virtual bool ServiceIsCreatedWithProfile() OVERRIDE; 26 virtual bool ServiceIsCreatedWithProfile() OVERRIDE;
27 27
28 private: 28 private:
29 friend struct DefaultSingletonTraits<ExtensionCommandServiceFactory>; 29 friend struct DefaultSingletonTraits<CommandServiceFactory>;
30 30
31 ExtensionCommandServiceFactory(); 31 CommandServiceFactory();
32 virtual ~ExtensionCommandServiceFactory(); 32 virtual ~CommandServiceFactory();
33 33
34 // ProfileKeyedServiceFactory: 34 // ProfileKeyedServiceFactory:
35 virtual ProfileKeyedService* BuildServiceInstanceFor( 35 virtual ProfileKeyedService* BuildServiceInstanceFor(
36 Profile* profile) const OVERRIDE; 36 Profile* profile) const OVERRIDE;
37 virtual bool ServiceRedirectedInIncognito() OVERRIDE; 37 virtual bool ServiceRedirectedInIncognito() OVERRIDE;
38 38
39 DISALLOW_COPY_AND_ASSIGN(ExtensionCommandServiceFactory); 39 DISALLOW_COPY_AND_ASSIGN(CommandServiceFactory);
40 }; 40 };
41 41
42 } // namespace extensions 42 } // namespace extensions
43 43
44 #endif // CHROME_BROWSER_EXTENSIONS_API_COMMANDS_EXTENSION_COMMAND_SERVICE_FACT ORY_H_ 44 #endif // CHROME_BROWSER_EXTENSIONS_API_COMMANDS_COMMAND_SERVICE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698