OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_SOCKET_PERMISSION_DATA_H_ | 4 #ifndef EXTENSIONS_COMMON_PERMISSIONS_SOCKET_PERMISSION_DATA_H_ |
5 #define CHROME_COMMON_EXTENSIONS_PERMISSIONS_SOCKET_PERMISSION_DATA_H_ | 5 #define EXTENSIONS_COMMON_PERMISSIONS_SOCKET_PERMISSION_DATA_H_ |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "chrome/common/extensions/permissions/socket_permission_entry.h" | |
10 #include "extensions/common/permissions/api_permission.h" | 9 #include "extensions/common/permissions/api_permission.h" |
| 10 #include "extensions/common/permissions/socket_permission_entry.h" |
11 #include "ipc/ipc_param_traits.h" | 11 #include "ipc/ipc_param_traits.h" |
12 | 12 |
13 namespace ipc_fuzzer { | 13 namespace ipc_fuzzer { |
14 template <class T> struct FuzzTraits; | 14 template <class T> |
15 template <class T> struct GenerateTraits; | 15 struct FuzzTraits; |
| 16 template <class T> |
| 17 struct GenerateTraits; |
16 } // namespace ipc_fuzzer | 18 } // namespace ipc_fuzzer |
17 | 19 |
18 namespace extensions { | 20 namespace extensions { |
19 | 21 |
20 // A pattern that can be used to match socket permission. | 22 // A pattern that can be used to match socket permission. |
21 // <socket-permission-pattern> | 23 // <socket-permission-pattern> |
22 // := <op> | | 24 // := <op> | |
23 // <op> ':' <host> | | 25 // <op> ':' <host> | |
24 // <op> ':' ':' <port> | | 26 // <op> ':' ':' <port> | |
25 // <op> ':' <host> ':' <port> | | 27 // <op> ':' <host> ':' <port> | |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 bool Parse(const std::string& permission); | 79 bool Parse(const std::string& permission); |
78 const std::string& GetAsString() const; | 80 const std::string& GetAsString() const; |
79 void Reset(); | 81 void Reset(); |
80 | 82 |
81 SocketPermissionEntry entry_; | 83 SocketPermissionEntry entry_; |
82 mutable std::string spec_; | 84 mutable std::string spec_; |
83 }; | 85 }; |
84 | 86 |
85 } // namespace extensions | 87 } // namespace extensions |
86 | 88 |
87 #endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_SOCKET_PERMISSION_DATA_H_ | 89 #endif // EXTENSIONS_COMMON_PERMISSIONS_SOCKET_PERMISSION_DATA_H_ |
OLD | NEW |