| OLD | NEW |
| 1 // Copyright (c) 2011 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 | 4 |
| 5 // NB: Modelled after Mozilla's code (originally written by Pamela Greene, | 5 // NB: Modelled after Mozilla's code (originally written by Pamela Greene, |
| 6 // later modified by others), but almost entirely rewritten for Chrome. | 6 // later modified by others), but almost entirely rewritten for Chrome. |
| 7 // (netwerk/dns/src/nsEffectiveTLDService.h) | 7 // (netwerk/dns/src/nsEffectiveTLDService.h) |
| 8 /* ***** BEGIN LICENSE BLOCK ***** | 8 /* ***** BEGIN LICENSE BLOCK ***** |
| 9 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 9 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 10 * | 10 * |
| 11 * The contents of this file are subject to the Mozilla Public License Version | 11 * The contents of this file are subject to the Mozilla Public License Version |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 items must already have been normalized. | 103 items must already have been normalized. |
| 104 (3) We do not allow comments, rule notes, blank lines, or line endings other | 104 (3) We do not allow comments, rule notes, blank lines, or line endings other |
| 105 than LF. | 105 than LF. |
| 106 Rules are also expected to be syntactically valid. | 106 Rules are also expected to be syntactically valid. |
| 107 | 107 |
| 108 The utility application tld_cleanup.exe converts a Mozilla-style file into a | 108 The utility application tld_cleanup.exe converts a Mozilla-style file into a |
| 109 Chrome one, making sure that single-level TLDs are explicitly listed, using | 109 Chrome one, making sure that single-level TLDs are explicitly listed, using |
| 110 GURL to normalize rules, and validating the rules. | 110 GURL to normalize rules, and validating the rules. |
| 111 */ | 111 */ |
| 112 | 112 |
| 113 #ifndef NET_BASE_REGISTRY_CONTROLLED_DOMAIN_H_ | 113 #ifndef NET_BASE_REGISTRY_CONTROLLED_DOMAINS_REGISTRY_CONTROLLED_DOMAIN_H_ |
| 114 #define NET_BASE_REGISTRY_CONTROLLED_DOMAIN_H_ | 114 #define NET_BASE_REGISTRY_CONTROLLED_DOMAINS_REGISTRY_CONTROLLED_DOMAIN_H_ |
| 115 | 115 |
| 116 #include <string> | 116 #include <string> |
| 117 | 117 |
| 118 #include "base/basictypes.h" | 118 #include "base/basictypes.h" |
| 119 #include "net/base/net_export.h" | 119 #include "net/base/net_export.h" |
| 120 | 120 |
| 121 class GURL; | 121 class GURL; |
| 122 | 122 |
| 123 struct DomainRule; | 123 struct DomainRule; |
| 124 | 124 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 207 |
| 208 // Function that returns a DomainRule given a domain. | 208 // Function that returns a DomainRule given a domain. |
| 209 static FindDomainPtr find_domain_function_; | 209 static FindDomainPtr find_domain_function_; |
| 210 | 210 |
| 211 | 211 |
| 212 DISALLOW_IMPLICIT_CONSTRUCTORS(RegistryControlledDomainService); | 212 DISALLOW_IMPLICIT_CONSTRUCTORS(RegistryControlledDomainService); |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 } // namespace net | 215 } // namespace net |
| 216 | 216 |
| 217 #endif // NET_BASE_REGISTRY_CONTROLLED_DOMAIN_H_ | 217 #endif // NET_BASE_REGISTRY_CONTROLLED_DOMAINS_REGISTRY_CONTROLLED_DOMAIN_H_ |
| OLD | NEW |