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