Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: components/google/core/browser/google_util.h

Issue 333723002: Componentize google_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + build fix Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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__
OLDNEW
« no previous file with comments | « components/google/core/browser/google_url_tracker_client.h ('k') | components/google/core/browser/google_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698