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

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

Issue 10689097: Enforce the 'requirements' field in manifests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Changed plugins requirement schema Created 8 years, 4 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 <string> 10 #include <string>
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 393
394 // Adds |extension| to this ExtensionService and notifies observers than an 394 // Adds |extension| to this ExtensionService and notifies observers than an
395 // extension has been loaded. Called by the backend after an extension has 395 // extension has been loaded. Called by the backend after an extension has
396 // been loaded from a file and installed. 396 // been loaded from a file and installed.
397 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE; 397 virtual void AddExtension(const extensions::Extension* extension) OVERRIDE;
398 398
399 // Called by the backend when an extension has been installed. 399 // Called by the backend when an extension has been installed.
400 void OnExtensionInstalled( 400 void OnExtensionInstalled(
401 const extensions::Extension* extension, 401 const extensions::Extension* extension,
402 bool from_webstore, 402 bool from_webstore,
403 const StringOrdinal& page_ordinal); 403 const StringOrdinal& page_ordinal,
404 bool has_requirement_errors);
404 405
405 // Initializes the |extension|'s active permission set and disables the 406 // Initializes the |extension|'s active permission set and disables the
406 // extension if the privilege level has increased (e.g., due to an upgrade). 407 // extension if the privilege level has increased (e.g., due to an upgrade).
407 void InitializePermissions(const extensions::Extension* extension); 408 void InitializePermissions(const extensions::Extension* extension);
408 409
409 // Go through each extensions in pref, unload blacklisted extensions 410 // Go through each extensions in pref, unload blacklisted extensions
410 // and update the blacklist state in pref. 411 // and update the blacklist state in pref.
411 virtual void UpdateExtensionBlacklist( 412 virtual void UpdateExtensionBlacklist(
412 const std::vector<std::string>& blacklist) OVERRIDE; 413 const std::vector<std::string>& blacklist) OVERRIDE;
413 414
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 #endif 867 #endif
867 868
868 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 869 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
869 InstallAppsWithUnlimtedStorage); 870 InstallAppsWithUnlimtedStorage);
870 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 871 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
871 InstallAppsAndCheckStorageProtection); 872 InstallAppsAndCheckStorageProtection);
872 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 873 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
873 }; 874 };
874 875
875 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 876 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698