Revert of Revert of Fix closure compile after https://codereview.chromium.org/1212653...
[chromium-blink-merge.git] / extensions / test / test_permission_message_provider.h
blob091fe01eebe7e2c98f7bd7651ef9fef611f60ad4
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
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_
6 #define EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_
8 #include "base/macros.h"
9 #include "extensions/common/permissions/permission_message_provider.h"
11 namespace extensions {
13 class TestPermissionMessageProvider : public PermissionMessageProvider {
14 public:
15 TestPermissionMessageProvider();
16 ~TestPermissionMessageProvider() override;
18 private:
19 PermissionMessageIDs GetLegacyPermissionMessageIDs(
20 const PermissionSet* permissions,
21 Manifest::Type extension_type) const override;
22 CoalescedPermissionMessages GetCoalescedPermissionMessages(
23 const PermissionIDSet& permissions) const override;
24 std::vector<base::string16> GetLegacyWarningMessages(
25 const PermissionSet* permissions,
26 Manifest::Type extension_type) const override;
27 std::vector<base::string16> GetLegacyWarningMessagesDetails(
28 const PermissionSet* permissions,
29 Manifest::Type extension_type) const override;
30 bool IsPrivilegeIncrease(const PermissionSet* old_permissions,
31 const PermissionSet* new_permissions,
32 Manifest::Type extension_type) const override;
33 PermissionIDSet GetAllPermissionIDs(
34 const PermissionSet* permissions,
35 Manifest::Type extension_type) const override;
37 DISALLOW_COPY_AND_ASSIGN(TestPermissionMessageProvider);
40 } // namespace extensions
42 #endif // EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_