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

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

Issue 195813007: Remove ExtensionService::IsExternalExtensionUninstalled() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 const std::string& id, 92 const std::string& id,
93 bool include_disabled) const = 0; 93 bool include_disabled) const = 0;
94 virtual const extensions::Extension* GetInstalledExtension( 94 virtual const extensions::Extension* GetInstalledExtension(
95 const std::string& id) const = 0; 95 const std::string& id) const = 0;
96 96
97 virtual const extensions::Extension* GetPendingExtensionUpdate( 97 virtual const extensions::Extension* GetPendingExtensionUpdate(
98 const std::string& extension_id) const = 0; 98 const std::string& extension_id) const = 0;
99 virtual void FinishDelayedInstallation(const std::string& extension_id) = 0; 99 virtual void FinishDelayedInstallation(const std::string& extension_id) = 0;
100 100
101 virtual bool IsExtensionEnabled(const std::string& extension_id) const = 0; 101 virtual bool IsExtensionEnabled(const std::string& extension_id) const = 0;
102 virtual bool IsExternalExtensionUninstalled(
103 const std::string& extension_id) const = 0;
104 102
105 virtual void CheckManagementPolicy() = 0; 103 virtual void CheckManagementPolicy() = 0;
106 104
107 // Safe to call multiple times in a row. 105 // Safe to call multiple times in a row.
108 // 106 //
109 // TODO(akalin): Remove this method (and others) once we refactor 107 // TODO(akalin): Remove this method (and others) once we refactor
110 // themes sync to not use it directly. 108 // themes sync to not use it directly.
111 virtual void CheckForUpdatesSoon() = 0; 109 virtual void CheckForUpdatesSoon() = 0;
112 110
113 virtual void AddExtension(const extensions::Extension* extension) = 0; 111 virtual void AddExtension(const extensions::Extension* extension) = 0;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 // are going to delete in this function. 256 // are going to delete in this function.
259 // 257 //
260 // TODO(aa): Remove |external_uninstall| -- this information should be passed 258 // TODO(aa): Remove |external_uninstall| -- this information should be passed
261 // to ExtensionPrefs some other way. 259 // to ExtensionPrefs some other way.
262 virtual bool UninstallExtension(std::string extension_id, 260 virtual bool UninstallExtension(std::string extension_id,
263 bool external_uninstall, 261 bool external_uninstall,
264 base::string16* error); 262 base::string16* error);
265 263
266 virtual bool IsExtensionEnabled( 264 virtual bool IsExtensionEnabled(
267 const std::string& extension_id) const OVERRIDE; 265 const std::string& extension_id) const OVERRIDE;
268 virtual bool IsExternalExtensionUninstalled(
269 const std::string& extension_id) const OVERRIDE;
270 266
271 // Enables the extension. If the extension is already enabled, does 267 // Enables the extension. If the extension is already enabled, does
272 // nothing. 268 // nothing.
273 virtual void EnableExtension(const std::string& extension_id); 269 virtual void EnableExtension(const std::string& extension_id);
274 270
275 // Disables the extension. If the extension is already disabled, or 271 // Disables the extension. If the extension is already disabled, or
276 // cannot be disabled, does nothing. 272 // cannot be disabled, does nothing.
277 virtual void DisableExtension(const std::string& extension_id, 273 virtual void DisableExtension(const std::string& extension_id,
278 extensions::Extension::DisableReason disable_reason); 274 extensions::Extension::DisableReason disable_reason);
279 275
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 838 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
843 GreylistedExtensionDisabled); 839 GreylistedExtensionDisabled);
844 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 840 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
845 GreylistDontEnableManuallyDisabled); 841 GreylistDontEnableManuallyDisabled);
846 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 842 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
847 GreylistUnknownDontChange); 843 GreylistUnknownDontChange);
848 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 844 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
849 }; 845 };
850 846
851 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 847 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | extensions/browser/pending_extension_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698