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

Side by Side Diff: chrome/common/extensions/permissions/app_permission_message_provider.h

Issue 27446002: Move permission warning message handling from PermissionSet to PermissionMessageProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698