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

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

Issue 149353002: Change default mode of extension install verification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged with latest trunk Created 6 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 const std::string& successor_extension_id); 192 const std::string& successor_extension_id);
193 193
194 // Getter and setter for the flag that specifies whether the extension is 194 // Getter and setter for the flag that specifies whether the extension is
195 // being reloaded. 195 // being reloaded.
196 bool IsBeingReloaded(const std::string& extension_id) const; 196 bool IsBeingReloaded(const std::string& extension_id) const;
197 void SetBeingReloaded(const std::string& extension_id, bool value); 197 void SetBeingReloaded(const std::string& extension_id, bool value);
198 198
199 // Initialize and start all installed extensions. 199 // Initialize and start all installed extensions.
200 void Init(); 200 void Init();
201 201
202 // Attempts to verify all extensions using the InstallVerifier. 202 // Attempts to verify all extensions using the InstallVerifier. The
203 void VerifyAllExtensions(); 203 // |bootstrap| parameter indicates whether we're doing this because the
204 // InstallVerifier needed to be bootstrapped (otherwise it's for another
205 // reason, e.g. extension install/uninstall).
206 void VerifyAllExtensions(bool bootstrap);
204 207
205 // Once the verifier work is finished, we may want to re-check management 208 // Once the verifier work is finished, we may want to re-check management
206 // policy if |success| indicates the verifier got a new signature back. 209 // policy if |success| indicates the verifier got a new signature back.
207 void FinishVerifyAllExtensions(bool success); 210 void FinishVerifyAllExtensions(bool bootstrap, bool success);
208 211
209 // Called when the associated Profile is going to be destroyed. 212 // Called when the associated Profile is going to be destroyed.
210 void Shutdown(); 213 void Shutdown();
211 214
212 // Look up an extension by ID. Does not include terminated 215 // Look up an extension by ID. Does not include terminated
213 // extensions. 216 // extensions.
214 virtual const extensions::Extension* GetExtensionById( 217 virtual const extensions::Extension* GetExtensionById(
215 const std::string& id, bool include_disabled) const OVERRIDE; 218 const std::string& id, bool include_disabled) const OVERRIDE;
216 219
217 // Returns the site of the given |extension_id|. Suitable for use with 220 // Returns the site of the given |extension_id|. Suitable for use with
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 854 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
852 GreylistedExtensionDisabled); 855 GreylistedExtensionDisabled);
853 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 856 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
854 GreylistDontEnableManuallyDisabled); 857 GreylistDontEnableManuallyDisabled);
855 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 858 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
856 GreylistUnknownDontChange); 859 GreylistUnknownDontChange);
857 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 860 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
858 }; 861 };
859 862
860 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 863 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698