OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_APP_PERMISSION_MESSAGE_PROVIDER_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_APP_PERMISSION_MESSAGE_PROVIDER_H_ |
| 7 |
| 8 #include "chrome/common/extensions/permissions/extension_permission_message_prov
ider.h" |
| 9 #include "extensions/common/permissions/permission_message_provider.h" |
| 10 |
| 11 namespace extensions { |
| 12 |
| 13 // Gets permission messages for platform apps. |
| 14 class AppPermissionMessageProvider : public ExtensionPermissionMessageProvider { |
| 15 public: |
| 16 AppPermissionMessageProvider(); |
| 17 virtual ~AppPermissionMessageProvider(); |
| 18 |
| 19 private: |
| 20 FRIEND_TEST_ALL_PREFIXES(PermissionsTest, IsHostPrivilegeIncrease); |
| 21 |
| 22 // ExtensionPermissionMessageProvider overrides. |
| 23 virtual std::set<PermissionMessage> GetHostPermissionMessages( |
| 24 const PermissionSet* permissions) const OVERRIDE; |
| 25 virtual bool IsHostPrivilegeIncrease( |
| 26 const PermissionSet* old_permissions, |
| 27 const PermissionSet* new_permissions) const OVERRIDE; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(AppPermissionMessageProvider); |
| 30 }; |
| 31 |
| 32 } // namespace extensions |
| 33 |
| 34 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_APP_PERMISSION_MESSAGE_PROVIDER_
H_ |
OLD | NEW |