| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_ | 5 #ifndef EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_ |
| 6 #define EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_ | 6 #define EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "extensions/common/permissions/permission_message_provider.h" | 9 #include "extensions/common/permissions/permission_message_provider.h" |
| 10 | 10 |
| 11 namespace extensions { | 11 namespace extensions { |
| 12 | 12 |
| 13 class TestPermissionMessageProvider : public PermissionMessageProvider { | 13 class TestPermissionMessageProvider : public PermissionMessageProvider { |
| 14 public: | 14 public: |
| 15 TestPermissionMessageProvider(); | 15 TestPermissionMessageProvider(); |
| 16 virtual ~TestPermissionMessageProvider(); | 16 virtual ~TestPermissionMessageProvider(); |
| 17 | 17 |
| 18 private: | 18 private: |
| 19 virtual PermissionMessages GetPermissionMessages( | 19 virtual PermissionMessages GetPermissionMessages( |
| 20 const PermissionSet* permissions, | 20 const PermissionSet* permissions, |
| 21 Manifest::Type extension_type) const OVERRIDE; | 21 Manifest::Type extension_type) const override; |
| 22 virtual std::vector<base::string16> GetWarningMessages( | 22 virtual std::vector<base::string16> GetWarningMessages( |
| 23 const PermissionSet* permissions, | 23 const PermissionSet* permissions, |
| 24 Manifest::Type extension_type) const OVERRIDE; | 24 Manifest::Type extension_type) const override; |
| 25 virtual std::vector<base::string16> GetWarningMessagesDetails( | 25 virtual std::vector<base::string16> GetWarningMessagesDetails( |
| 26 const PermissionSet* permissions, | 26 const PermissionSet* permissions, |
| 27 Manifest::Type extension_type) const OVERRIDE; | 27 Manifest::Type extension_type) const override; |
| 28 virtual bool IsPrivilegeIncrease( | 28 virtual bool IsPrivilegeIncrease( |
| 29 const PermissionSet* old_permissions, | 29 const PermissionSet* old_permissions, |
| 30 const PermissionSet* new_permissions, | 30 const PermissionSet* new_permissions, |
| 31 Manifest::Type extension_type) const OVERRIDE; | 31 Manifest::Type extension_type) const override; |
| 32 | 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(TestPermissionMessageProvider); | 33 DISALLOW_COPY_AND_ASSIGN(TestPermissionMessageProvider); |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 } // namespace extensions | 36 } // namespace extensions |
| 37 | 37 |
| 38 #endif // EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_ | 38 #endif // EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_ |
| OLD | NEW |