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

Side by Side Diff: extensions/test/test_permission_message_provider.h

Issue 980353003: Extensions: Switch to new permission message system, part I (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 years, 9 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 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 ~TestPermissionMessageProvider() override; 16 ~TestPermissionMessageProvider() override;
17 17
18 private: 18 private:
19 PermissionMessageStrings GetPermissionMessageStrings(
20 const PermissionSet* permissions,
21 Manifest::Type extension_type) const override;
22 PermissionMessageIDs GetLegacyPermissionMessageIDs( 19 PermissionMessageIDs GetLegacyPermissionMessageIDs(
23 const PermissionSet* permissions, 20 const PermissionSet* permissions,
24 Manifest::Type extension_type) const override; 21 Manifest::Type extension_type) const override;
25 CoalescedPermissionMessages GetCoalescedPermissionMessages( 22 CoalescedPermissionMessages GetCoalescedPermissionMessages(
26 const PermissionIDSet& permissions) const override; 23 const PermissionIDSet& permissions) const override;
27 std::vector<base::string16> GetLegacyWarningMessages( 24 std::vector<base::string16> GetLegacyWarningMessages(
28 const PermissionSet* permissions, 25 const PermissionSet* permissions,
29 Manifest::Type extension_type) const override; 26 Manifest::Type extension_type) const override;
30 std::vector<base::string16> GetLegacyWarningMessagesDetails( 27 std::vector<base::string16> GetLegacyWarningMessagesDetails(
31 const PermissionSet* permissions, 28 const PermissionSet* permissions,
32 Manifest::Type extension_type) const override; 29 Manifest::Type extension_type) const override;
33 bool IsPrivilegeIncrease(const PermissionSet* old_permissions, 30 bool IsPrivilegeIncrease(const PermissionSet* old_permissions,
34 const PermissionSet* new_permissions, 31 const PermissionSet* new_permissions,
35 Manifest::Type extension_type) const override; 32 Manifest::Type extension_type) const override;
36 PermissionIDSet GetAllPermissionIDs( 33 PermissionIDSet GetAllPermissionIDs(
37 const PermissionSet* permissions, 34 const PermissionSet* permissions,
38 Manifest::Type extension_type) const override; 35 Manifest::Type extension_type) const override;
39 36
40 DISALLOW_COPY_AND_ASSIGN(TestPermissionMessageProvider); 37 DISALLOW_COPY_AND_ASSIGN(TestPermissionMessageProvider);
41 }; 38 };
42 39
43 } // namespace extensions 40 } // namespace extensions
44 41
45 #endif // EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_ 42 #endif // EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_
OLDNEW
« no previous file with comments | « extensions/shell/common/shell_extensions_client.cc ('k') | extensions/test/test_permission_message_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698