| 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 EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_H_ | 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_H_ |
| 6 #define EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_H_ | 6 #define EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/pickle.h" | 12 #include "base/pickle.h" |
| 13 #include "extensions/common/permissions/api_permission_set.h" | 13 #include "extensions/common/permissions/api_permission_set.h" |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 class PickleIterator; | 16 class PickleIterator; |
| 17 class Value; | 17 class Value; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace IPC { | |
| 21 class Message; | |
| 22 } | |
| 23 | |
| 24 namespace extensions { | 20 namespace extensions { |
| 25 | 21 |
| 26 // Represent the custom behavior of a top-level manifest entry contributing to | 22 // Represent the custom behavior of a top-level manifest entry contributing to |
| 27 // permission messages and storage. | 23 // permission messages and storage. |
| 28 class ManifestPermission { | 24 class ManifestPermission { |
| 29 public: | 25 public: |
| 30 ManifestPermission(); | 26 ManifestPermission(); |
| 31 virtual ~ManifestPermission(); | 27 virtual ~ManifestPermission(); |
| 32 | 28 |
| 33 // The manifest key this permission applies to. | 29 // The manifest key this permission applies to. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // Logs this permission. | 76 // Logs this permission. |
| 81 void Log(std::string* log) const; | 77 void Log(std::string* log) const; |
| 82 | 78 |
| 83 private: | 79 private: |
| 84 DISALLOW_COPY_AND_ASSIGN(ManifestPermission); | 80 DISALLOW_COPY_AND_ASSIGN(ManifestPermission); |
| 85 }; | 81 }; |
| 86 | 82 |
| 87 } // namespace extensions | 83 } // namespace extensions |
| 88 | 84 |
| 89 #endif // EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_H_ | 85 #endif // EXTENSIONS_COMMON_PERMISSIONS_MANIFEST_PERMISSION_H_ |
| OLD | NEW |