blob: ce555beb55fc10015b363e5feb605e61d7b7b8fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_
#define EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_
#include "base/macros.h"
#include "extensions/common/permissions/permission_message_provider.h"
namespace extensions {
class TestPermissionMessageProvider : public PermissionMessageProvider {
public:
TestPermissionMessageProvider();
virtual ~TestPermissionMessageProvider();
private:
virtual PermissionMessages GetPermissionMessages(
const PermissionSet* permissions,
Manifest::Type extension_type) const override;
virtual std::vector<base::string16> GetWarningMessages(
const PermissionSet* permissions,
Manifest::Type extension_type) const override;
virtual std::vector<base::string16> GetWarningMessagesDetails(
const PermissionSet* permissions,
Manifest::Type extension_type) const override;
virtual bool IsPrivilegeIncrease(
const PermissionSet* old_permissions,
const PermissionSet* new_permissions,
Manifest::Type extension_type) const override;
DISALLOW_COPY_AND_ASSIGN(TestPermissionMessageProvider);
};
} // namespace extensions
#endif // EXTENSIONS_TEST_TEST_PERMISSION_MESSAGE_PROVIDER_H_
|