Index: net/base/net_util.h |
diff --git a/net/base/net_util.h b/net/base/net_util.h |
index f614eb66482c92e8cfc53633e6a58fa59af2a62b..9251a4a47608f10d6784ee6d139cc49a765e1b69 100644 |
--- a/net/base/net_util.h |
+++ b/net/base/net_util.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2009 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -83,6 +83,9 @@ void GetIdentityFromURL(const GURL& url, |
std::wstring* username, |
std::wstring* password); |
+// Returns either the host from |url|, or, if the host is empty, the full spec. |
+std::string GetHostOrSpecFromURL(const GURL& url); |
+ |
// Return the value of the HTTP response header with name 'name'. 'headers' |
// should be in the format that URLRequest::GetResponseHeaders() returns. |
// Returns the empty string if the header is not found. |