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

Unified Diff: net/base/net_util.h

Issue 1582083002: net: move GetIdentifyFromURL function into url_util.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/net_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util.h
diff --git a/net/base/net_util.h b/net/base/net_util.h
index 6a498f63ceb11b4c6de157d2d07a9315330890d5..1bf6510122ccf1db15e1598180af962be7f50988 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -11,16 +11,11 @@
#include <string>
#include <vector>
-#include "base/strings/string16.h"
#include "base/strings/string_piece.h"
#include "net/base/net_export.h"
class GURL;
-namespace base {
-class Time;
-}
-
namespace url {
struct CanonHostInfo;
}
@@ -64,12 +59,6 @@ NET_EXPORT bool IsHostnameNonUnique(const std::string& hostname);
// Returns the hostname of the current system. Returns empty string on failure.
NET_EXPORT std::string GetHostName();
-// Extracts the unescaped username/password from |url|, saving the results
-// into |*username| and |*password|.
-NET_EXPORT_PRIVATE void GetIdentityFromURL(const GURL& url,
- base::string16* username,
- base::string16* password);
-
// Returns either the host from |url|, or, if the host is empty, the full spec.
NET_EXPORT std::string GetHostOrSpecFromURL(const GURL& url);
eroman 2016/01/13 20:21:02 This is a good candidate for url_util too
« no previous file with comments | « no previous file | net/base/net_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698