| 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 // Some Google related utility functions. | 5 // Some Google related utility functions. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_GOOGLE_GOOGLE_UTIL_H__ | 7 #ifndef COMPONENTS_GOOGLE_CORE_BROWSER_GOOGLE_UTIL_H__ |
| 8 #define CHROME_BROWSER_GOOGLE_GOOGLE_UTIL_H__ | 8 #define COMPONENTS_GOOGLE_CORE_BROWSER_GOOGLE_UTIL_H__ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 | 13 |
| 14 class GURL; | 14 class GURL; |
| 15 | 15 |
| 16 // This namespace provides various helpers around handling Google-related URLs. | 16 // This namespace provides various helpers around handling Google-related URLs. |
| 17 namespace google_util { | 17 namespace google_util { |
| 18 | 18 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 // True if |url| is a valid youtube.<TLD> URL. If |port_permission| is | 105 // True if |url| is a valid youtube.<TLD> URL. If |port_permission| is |
| 106 // DISALLOW_NON_STANDARD_PORTS, this also requires |url| to use the standard | 106 // DISALLOW_NON_STANDARD_PORTS, this also requires |url| to use the standard |
| 107 // port for its scheme (80 for HTTP, 443 for HTTPS). | 107 // port for its scheme (80 for HTTP, 443 for HTTPS). |
| 108 bool IsYoutubeDomainUrl(const GURL& url, | 108 bool IsYoutubeDomainUrl(const GURL& url, |
| 109 SubdomainPermission subdomain_permission, | 109 SubdomainPermission subdomain_permission, |
| 110 PortPermission port_permission); | 110 PortPermission port_permission); |
| 111 | 111 |
| 112 } // namespace google_util | 112 } // namespace google_util |
| 113 | 113 |
| 114 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_UTIL_H__ | 114 #endif // COMPONENTS_GOOGLE_CORE_BROWSER_GOOGLE_UTIL_H__ |
| OLD | NEW |