| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_PERMISSION_MESSAGE_PROVIDER_
H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_PERMISSION_MESSAGE_PROVIDER_
H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_PERMISSION_MESSAGE_PROVIDER_
H_ | 6 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_PERMISSION_MESSAGE_PROVIDER_
H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "extensions/common/permissions/permission_message_provider.h" | 13 #include "extensions/common/permissions/permission_message_provider.h" |
| 14 | 14 |
| 15 namespace extensions { | 15 namespace extensions { |
| 16 | 16 |
| 17 class ChromePermissionMessageProvider : public PermissionMessageProvider { | 17 class ChromePermissionMessageProvider : public PermissionMessageProvider { |
| 18 public: | 18 public: |
| 19 ChromePermissionMessageProvider(); | 19 ChromePermissionMessageProvider(); |
| 20 virtual ~ChromePermissionMessageProvider(); | 20 virtual ~ChromePermissionMessageProvider(); |
| 21 | 21 |
| 22 // PermissionMessageProvider implementation. | 22 // PermissionMessageProvider implementation. |
| 23 virtual PermissionMessages GetPermissionMessages( | 23 virtual PermissionMessages GetPermissionMessages( |
| 24 const PermissionSet* permissions, | 24 const PermissionSet* permissions, |
| 25 Manifest::Type extension_type) const OVERRIDE; | 25 Manifest::Type extension_type) const OVERRIDE; |
| 26 virtual std::vector<string16> GetWarningMessages( | 26 virtual std::vector<base::string16> GetWarningMessages( |
| 27 const PermissionSet* permissions, | 27 const PermissionSet* permissions, |
| 28 Manifest::Type extension_type) const OVERRIDE; | 28 Manifest::Type extension_type) const OVERRIDE; |
| 29 virtual std::vector<string16> GetWarningMessagesDetails( | 29 virtual std::vector<base::string16> GetWarningMessagesDetails( |
| 30 const PermissionSet* permissions, | 30 const PermissionSet* permissions, |
| 31 Manifest::Type extension_type) const OVERRIDE; | 31 Manifest::Type extension_type) const OVERRIDE; |
| 32 virtual bool IsPrivilegeIncrease( | 32 virtual bool IsPrivilegeIncrease( |
| 33 const PermissionSet* old_permissions, | 33 const PermissionSet* old_permissions, |
| 34 const PermissionSet* new_permissions, | 34 const PermissionSet* new_permissions, |
| 35 Manifest::Type extension_type) const OVERRIDE; | 35 Manifest::Type extension_type) const OVERRIDE; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 // Gets the permission messages for the API permissions. | 38 // Gets the permission messages for the API permissions. |
| 39 std::set<PermissionMessage> GetAPIPermissionMessages( | 39 std::set<PermissionMessage> GetAPIPermissionMessages( |
| (...skipping 26 matching lines...) Expand all Loading... |
| 66 const PermissionSet* old_permissions, | 66 const PermissionSet* old_permissions, |
| 67 const PermissionSet* new_permissions, | 67 const PermissionSet* new_permissions, |
| 68 Manifest::Type extension_type) const; | 68 Manifest::Type extension_type) const; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(ChromePermissionMessageProvider); | 70 DISALLOW_COPY_AND_ASSIGN(ChromePermissionMessageProvider); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace extensions | 73 } // namespace extensions |
| 74 | 74 |
| 75 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_PERMISSION_MESSAGE_PROVID
ER_H_ | 75 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_CHROME_PERMISSION_MESSAGE_PROVID
ER_H_ |
| OLD | NEW |