| 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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 ".googlevideo.com", | 787 ".googlevideo.com", |
| 788 ".googleusercontent.com", | 788 ".googleusercontent.com", |
| 789 ".googlesyndication.com", | 789 ".googlesyndication.com", |
| 790 ".google-analytics.com", | 790 ".google-analytics.com", |
| 791 ".googleadservices.com", | 791 ".googleadservices.com", |
| 792 ".googleapis.com", | 792 ".googleapis.com", |
| 793 ".ytimg.com", | 793 ".ytimg.com", |
| 794 }; | 794 }; |
| 795 const std::string& host = url.host(); | 795 const std::string& host = url.host(); |
| 796 for (const char* suffix : kGoogleHostSuffixes) { | 796 for (const char* suffix : kGoogleHostSuffixes) { |
| 797 if (EndsWith(host, suffix, false)) | 797 if (base::EndsWith(host, suffix, false)) |
| 798 return true; | 798 return true; |
| 799 } | 799 } |
| 800 return false; | 800 return false; |
| 801 } | 801 } |
| 802 | 802 |
| 803 } // namespace net | 803 } // namespace net |
| OLD | NEW |