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

Side by Side Diff: extensions/common/extension.h

Issue 2499493004: Communicate ExtensionSettings policy to renderers (Closed)
Patch Set: -Removed old includes, added lock check to SetUsesDefaultHostRestrictions Created 3 years, 8 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 EXTENSIONS_COMMON_EXTENSION_H_ 5 #ifndef EXTENSIONS_COMMON_EXTENSION_H_
6 #define EXTENSIONS_COMMON_EXTENSION_H_ 6 #define EXTENSIONS_COMMON_EXTENSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 const Extension* extension; 538 const Extension* extension;
539 539
540 UnloadedExtensionInfo(const Extension* extension, Reason reason); 540 UnloadedExtensionInfo(const Extension* extension, Reason reason);
541 }; 541 };
542 542
543 // The details sent for EXTENSION_PERMISSIONS_UPDATED notifications. 543 // The details sent for EXTENSION_PERMISSIONS_UPDATED notifications.
544 struct UpdatedExtensionPermissionsInfo { 544 struct UpdatedExtensionPermissionsInfo {
545 enum Reason { 545 enum Reason {
546 ADDED, // The permissions were added to the extension. 546 ADDED, // The permissions were added to the extension.
547 REMOVED, // The permissions were removed from the extension. 547 REMOVED, // The permissions were removed from the extension.
548 POLICY, // The policy that affects permissions was updated.
548 }; 549 };
549 550
550 Reason reason; 551 Reason reason;
551 552
552 // The extension who's permissions have changed. 553 // The extension who's permissions have changed.
553 const Extension* extension; 554 const Extension* extension;
554 555
555 // The permissions that have changed. For Reason::ADDED, this would contain 556 // The permissions that have changed. For Reason::ADDED, this would contain
556 // only the permissions that have added, and for Reason::REMOVED, this would 557 // only the permissions that have added, and for Reason::REMOVED, this would
557 // only contain the removed permissions. 558 // only contain the removed permissions.
558 const PermissionSet& permissions; 559 const PermissionSet& permissions;
559 560
560 UpdatedExtensionPermissionsInfo(const Extension* extension, 561 UpdatedExtensionPermissionsInfo(const Extension* extension,
561 const PermissionSet& permissions, 562 const PermissionSet& permissions,
562 Reason reason); 563 Reason reason);
563 }; 564 };
564 565
565 } // namespace extensions 566 } // namespace extensions
566 567
567 #endif // EXTENSIONS_COMMON_EXTENSION_H_ 568 #endif // EXTENSIONS_COMMON_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698