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

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

Issue 9718028: Allow autoupdate to update disabled extensions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // various classes have on ExtensionService. This allows easy mocking. 82 // various classes have on ExtensionService. This allows easy mocking.
83 class ExtensionServiceInterface : public SyncableService { 83 class ExtensionServiceInterface : public SyncableService {
84 public: 84 public:
85 // A function that returns true if the given extension should be 85 // A function that returns true if the given extension should be
86 // included and false if it should be filtered out. Identical to 86 // included and false if it should be filtered out. Identical to
87 // PendingExtensionInfo::ShouldAllowInstallPredicate. 87 // PendingExtensionInfo::ShouldAllowInstallPredicate.
88 typedef bool (*ExtensionFilter)(const Extension&); 88 typedef bool (*ExtensionFilter)(const Extension&);
89 89
90 virtual ~ExtensionServiceInterface() {} 90 virtual ~ExtensionServiceInterface() {}
91 virtual const ExtensionSet* extensions() const = 0; 91 virtual const ExtensionSet* extensions() const = 0;
92 virtual const ExtensionSet* disabled_extensions() const = 0;
92 virtual PendingExtensionManager* pending_extension_manager() = 0; 93 virtual PendingExtensionManager* pending_extension_manager() = 0;
93 94
94 // Install an update. Return true if the install can be started. 95 // Install an update. Return true if the install can be started.
95 // Set out_crx_installer to the installer if one was started. 96 // Set out_crx_installer to the installer if one was started.
96 virtual bool UpdateExtension( 97 virtual bool UpdateExtension(
97 const std::string& id, 98 const std::string& id,
98 const FilePath& path, 99 const FilePath& path,
99 const GURL& download_url, 100 const GURL& download_url,
100 CrxInstaller** out_crx_installer) = 0; 101 CrxInstaller** out_crx_installer) = 0;
101 virtual const Extension* GetExtensionById(const std::string& id, 102 virtual const Extension* GetExtensionById(const std::string& id,
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 scoped_ptr<ExtensionGlobalError> extension_global_error_; 846 scoped_ptr<ExtensionGlobalError> extension_global_error_;
846 847
847 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 848 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
848 InstallAppsWithUnlimtedStorage); 849 InstallAppsWithUnlimtedStorage);
849 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
850 InstallAppsAndCheckStorageProtection); 851 InstallAppsAndCheckStorageProtection);
851 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 852 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
852 }; 853 };
853 854
854 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 855 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698