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 | 4 |
5 #include "net/base/net_util.h" | 5 #include "net/base/net_util.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include "base/logging.h" | 39 #include "base/logging.h" |
40 #include "base/strings/string_number_conversions.h" | 40 #include "base/strings/string_number_conversions.h" |
41 #include "base/strings/string_piece.h" | 41 #include "base/strings/string_piece.h" |
42 #include "base/strings/string_split.h" | 42 #include "base/strings/string_split.h" |
43 #include "base/strings/string_util.h" | 43 #include "base/strings/string_util.h" |
44 #include "base/strings/stringprintf.h" | 44 #include "base/strings/stringprintf.h" |
45 #include "base/strings/utf_string_conversions.h" | 45 #include "base/strings/utf_string_conversions.h" |
46 #include "base/sys_byteorder.h" | 46 #include "base/sys_byteorder.h" |
47 #include "base/values.h" | 47 #include "base/values.h" |
48 #include "net/base/dns_util.h" | 48 #include "net/base/dns_util.h" |
| 49 #include "net/base/ip_address_number.h" |
49 #include "net/base/net_module.h" | 50 #include "net/base/net_module.h" |
50 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 51 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
51 #include "net/grit/net_resources.h" | 52 #include "net/grit/net_resources.h" |
52 #include "net/http/http_content_disposition.h" | 53 #include "net/http/http_content_disposition.h" |
53 #include "url/gurl.h" | 54 #include "url/gurl.h" |
54 #include "url/third_party/mozilla/url_parse.h" | 55 #include "url/third_party/mozilla/url_parse.h" |
55 #include "url/url_canon.h" | 56 #include "url/url_canon.h" |
56 #include "url/url_canon_ip.h" | 57 #include "url/url_canon_ip.h" |
57 | 58 |
58 #if defined(OS_ANDROID) | 59 #if defined(OS_ANDROID) |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 }; | 790 }; |
790 const std::string& host = url.host(); | 791 const std::string& host = url.host(); |
791 for (const char* suffix : kGoogleHostSuffixes) { | 792 for (const char* suffix : kGoogleHostSuffixes) { |
792 if (EndsWith(host, suffix, false)) | 793 if (EndsWith(host, suffix, false)) |
793 return true; | 794 return true; |
794 } | 795 } |
795 return false; | 796 return false; |
796 } | 797 } |
797 | 798 |
798 } // namespace net | 799 } // namespace net |
OLD | NEW |