| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "net/tools/tld_cleanup/tld_cleanup_util.h" | 5 #include "net/tools/tld_cleanup/tld_cleanup_util.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "url/gurl.h" |
| 12 #include "googleurl/src/url_parse.h" | 12 #include "url/url_parse.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 const char kBeginPrivateDomainsComment[] = "// ===BEGIN PRIVATE DOMAINS==="; | 16 const char kBeginPrivateDomainsComment[] = "// ===BEGIN PRIVATE DOMAINS==="; |
| 17 const char kEndPrivateDomainsComment[] = "// ===END PRIVATE DOMAINS==="; | 17 const char kEndPrivateDomainsComment[] = "// ===END PRIVATE DOMAINS==="; |
| 18 | 18 |
| 19 const int kExceptionRule = 1; | 19 const int kExceptionRule = 1; |
| 20 const int kWildcardRule = 2; | 20 const int kWildcardRule = 2; |
| 21 const int kPrivateRule = 4; | 21 const int kPrivateRule = 4; |
| 22 } | 22 } |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 LOG(ERROR) << "Error(s) writing output file"; | 245 LOG(ERROR) << "Error(s) writing output file"; |
| 246 result = kError; | 246 result = kError; |
| 247 } | 247 } |
| 248 | 248 |
| 249 return result; | 249 return result; |
| 250 } | 250 } |
| 251 | 251 |
| 252 | 252 |
| 253 } // namespace tld_cleanup | 253 } // namespace tld_cleanup |
| 254 } // namespace net | 254 } // namespace net |
| OLD | NEW |