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

Side by Side Diff: chrome/browser/extensions/extension_service.h

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 (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_EXTENSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 18 matching lines...) Expand all
29 #include "extensions/browser/extension_prefs.h" 29 #include "extensions/browser/extension_prefs.h"
30 #include "extensions/browser/external_provider_interface.h" 30 #include "extensions/browser/external_provider_interface.h"
31 #include "extensions/browser/management_policy.h" 31 #include "extensions/browser/management_policy.h"
32 #include "extensions/browser/process_manager.h" 32 #include "extensions/browser/process_manager.h"
33 #include "extensions/common/extension.h" 33 #include "extensions/common/extension.h"
34 #include "extensions/common/extension_set.h" 34 #include "extensions/common/extension_set.h"
35 #include "extensions/common/manifest.h" 35 #include "extensions/common/manifest.h"
36 #include "extensions/common/manifest_handlers/shared_module_info.h" 36 #include "extensions/common/manifest_handlers/shared_module_info.h"
37 #include "extensions/common/one_shot_event.h" 37 #include "extensions/common/one_shot_event.h"
38 38
39 class CommandLine;
40 class ExtensionErrorUI; 39 class ExtensionErrorUI;
41 class ExtensionToolbarModel; 40 class ExtensionToolbarModel;
42 class GURL; 41 class GURL;
43 class Profile; 42 class Profile;
44 43
45 namespace base { 44 namespace base {
45 class CommandLine;
46 class SequencedTaskRunner; 46 class SequencedTaskRunner;
47 class Version; 47 class Version;
48 } 48 }
49 49
50 namespace extensions { 50 namespace extensions {
51 class BrowserEventRouter; 51 class BrowserEventRouter;
52 class ComponentLoader; 52 class ComponentLoader;
53 class CrxInstaller; 53 class CrxInstaller;
54 class ExtensionActionStorageManager; 54 class ExtensionActionStorageManager;
55 class ExtensionRegistry; 55 class ExtensionRegistry;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 bool IsInstalledApp(const GURL& url) const; 145 bool IsInstalledApp(const GURL& url) const;
146 146
147 // Attempts to uninstall an extension from a given ExtensionService. Returns 147 // Attempts to uninstall an extension from a given ExtensionService. Returns
148 // true iff the target extension exists. 148 // true iff the target extension exists.
149 static bool UninstallExtensionHelper(ExtensionService* extensions_service, 149 static bool UninstallExtensionHelper(ExtensionService* extensions_service,
150 const std::string& extension_id); 150 const std::string& extension_id);
151 151
152 // Constructor stores pointers to |profile| and |extension_prefs| but 152 // Constructor stores pointers to |profile| and |extension_prefs| but
153 // ownership remains at caller. 153 // ownership remains at caller.
154 ExtensionService(Profile* profile, 154 ExtensionService(Profile* profile,
155 const CommandLine* command_line, 155 const base::CommandLine* command_line,
156 const base::FilePath& install_directory, 156 const base::FilePath& install_directory,
157 extensions::ExtensionPrefs* extension_prefs, 157 extensions::ExtensionPrefs* extension_prefs,
158 extensions::Blacklist* blacklist, 158 extensions::Blacklist* blacklist,
159 bool autoupdate_enabled, 159 bool autoupdate_enabled,
160 bool extensions_enabled, 160 bool extensions_enabled,
161 extensions::OneShotEvent* ready); 161 extensions::OneShotEvent* ready);
162 162
163 virtual ~ExtensionService(); 163 virtual ~ExtensionService();
164 164
165 // DEPRECATED: Use ExtensionRegistry::enabled_extensions() instead. 165 // DEPRECATED: Use ExtensionRegistry::enabled_extensions() instead.
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 835 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
836 GreylistedExtensionDisabled); 836 GreylistedExtensionDisabled);
837 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 837 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
838 GreylistDontEnableManuallyDisabled); 838 GreylistDontEnableManuallyDisabled);
839 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 839 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
840 GreylistUnknownDontChange); 840 GreylistUnknownDontChange);
841 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 841 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
842 }; 842 };
843 843
844 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 844 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_browsertest.h ('k') | chrome/browser/extensions/startup_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698