Chromium Code Reviews| Index: extensions/common/permissions/permission_message_util.h |
| diff --git a/extensions/common/permissions/permission_message_util.h b/extensions/common/permissions/permission_message_util.h |
| index 410e1a2816696ff4afa704d719211ddc3d0ccd1c..2392e455246f9733797963dc24bb2913fc1cd2ca 100644 |
| --- a/extensions/common/permissions/permission_message_util.h |
| +++ b/extensions/common/permissions/permission_message_util.h |
| @@ -16,15 +16,22 @@ class URLPatternSet; |
| namespace permission_message_util { |
| +enum PermissionMessageProperties { |
| + kReadOnly = 0, |
|
not at google - send to devlin
2014/07/25 20:40:03
is the = 0, =1 really necessary?
aboxhall
2014/07/25 20:54:22
Done.
|
| + kReadWrite = 1 |
| +}; |
| + |
| // Creates the corresponding permission message for a list of hosts. |
| -// The messages change depending on what hosts are present. |
| +// The messages change depending on how many hosts are present, and whether |
| +// |read_only| is true. |
| extensions::PermissionMessage CreateFromHostList( |
| - const std::set<std::string>& hosts); |
| + const std::set<std::string>& hosts, |
| + PermissionMessageProperties); |
| -std::set<std::string> GetDistinctHosts( |
| - const extensions::URLPatternSet& host_patterns, |
| - bool include_rcd, |
| - bool exclude_file_scheme); |
| + std::set<std::string> GetDistinctHosts( |
| + const extensions::URLPatternSet& host_patterns, |
| + bool include_rcd, |
| + bool exclude_file_scheme); |
|
not at google - send to devlin
2014/07/25 20:40:03
was this clang-format? it shouldn't be indented.
|
| } // namespace permission_message_util |