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

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

Issue 93513006: Allow re-enabling of DISABLE_NOT_VERIFIED extensions if appropriate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated to auto-recheck on settings page load when appropriate Created 7 years 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 // Getter and setter for the flag that specifies if the extension has used 197 // Getter and setter for the flag that specifies if the extension has used
198 // the webrequest API. 198 // the webrequest API.
199 // TODO(mpcomplete): remove. http://crbug.com/100411 199 // TODO(mpcomplete): remove. http://crbug.com/100411
200 bool HasUsedWebRequest(const extensions::Extension* extension) const; 200 bool HasUsedWebRequest(const extensions::Extension* extension) const;
201 void SetHasUsedWebRequest(const extensions::Extension* extension, bool value); 201 void SetHasUsedWebRequest(const extensions::Extension* extension, bool value);
202 202
203 // Initialize and start all installed extensions. 203 // Initialize and start all installed extensions.
204 void Init(); 204 void Init();
205 205
206 // Attempts to verify all extensions using the InstallVerifier.
207 void VerifyAllExtensions();
208
209 // Once the verifier work is finished, we may want to re-check management
210 // policy if |success| indicates the verifier got a new signature back.
211 void FinishVerifyAllExtensions(bool success);
212
206 // Called when the associated Profile is going to be destroyed. 213 // Called when the associated Profile is going to be destroyed.
207 void Shutdown(); 214 void Shutdown();
208 215
209 // Look up an extension by ID. Does not include terminated 216 // Look up an extension by ID. Does not include terminated
210 // extensions. 217 // extensions.
211 virtual const extensions::Extension* GetExtensionById( 218 virtual const extensions::Extension* GetExtensionById(
212 const std::string& id, bool include_disabled) const OVERRIDE; 219 const std::string& id, bool include_disabled) const OVERRIDE;
213 220
214 enum IncludeFlag { 221 enum IncludeFlag {
215 INCLUDE_NONE = 0, 222 INCLUDE_NONE = 0,
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 #endif 851 #endif
845 852
846 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 853 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
847 InstallAppsWithUnlimtedStorage); 854 InstallAppsWithUnlimtedStorage);
848 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 855 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
849 InstallAppsAndCheckStorageProtection); 856 InstallAppsAndCheckStorageProtection);
850 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 857 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
851 }; 858 };
852 859
853 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 860 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | chrome/browser/extensions/extension_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698