OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 NET_BASE_IP_PATTERN_H_ | 5 #ifndef NET_BASE_IP_PATTERN_H_ |
6 #define NET_BASE_IP_PATTERN_H_ | 6 #define NET_BASE_IP_PATTERN_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/basictypes.h" | 13 #include "base/macros.h" |
12 #include "base/strings/string_piece.h" | 14 #include "base/strings/string_piece.h" |
13 #include "net/base/ip_address_number.h" | 15 #include "net/base/ip_address_number.h" |
14 #include "net/base/net_export.h" | 16 #include "net/base/net_export.h" |
15 | 17 |
16 namespace net { | 18 namespace net { |
17 | 19 |
18 // IPPatterns are used to match IP address resolutions for possible augmentation | 20 // IPPatterns are used to match IP address resolutions for possible augmentation |
19 // by a MappedIPResolver, which uses IPMappingRules. | 21 // by a MappedIPResolver, which uses IPMappingRules. |
20 class NET_EXPORT IPPattern { | 22 class NET_EXPORT IPPattern { |
21 public: | 23 public: |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // of ip_mask_ that is false.) | 63 // of ip_mask_ that is false.) |
62 // We own these elements, and need to destroy them all when we are destroyed. | 64 // We own these elements, and need to destroy them all when we are destroyed. |
63 ComponentPatternList component_patterns_; | 65 ComponentPatternList component_patterns_; |
64 | 66 |
65 DISALLOW_COPY_AND_ASSIGN(IPPattern); | 67 DISALLOW_COPY_AND_ASSIGN(IPPattern); |
66 }; | 68 }; |
67 | 69 |
68 } // namespace net | 70 } // namespace net |
69 | 71 |
70 #endif // NET_BASE_IP_PATTERN_H_ | 72 #endif // NET_BASE_IP_PATTERN_H_ |
OLD | NEW |