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

Side by Side Diff: net/base/net_util.h

Issue 5384002: net: Remove typedef net::URLRequest URLRequest; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef NET_BASE_NET_UTIL_H_ 5 #ifndef NET_BASE_NET_UTIL_H_
6 #define NET_BASE_NET_UTIL_H_ 6 #define NET_BASE_NET_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Extracts the unescaped username/password from |url|, saving the results 118 // Extracts the unescaped username/password from |url|, saving the results
119 // into |*username| and |*password|. 119 // into |*username| and |*password|.
120 void GetIdentityFromURL(const GURL& url, 120 void GetIdentityFromURL(const GURL& url,
121 string16* username, 121 string16* username,
122 string16* password); 122 string16* password);
123 123
124 // Returns either the host from |url|, or, if the host is empty, the full spec. 124 // Returns either the host from |url|, or, if the host is empty, the full spec.
125 std::string GetHostOrSpecFromURL(const GURL& url); 125 std::string GetHostOrSpecFromURL(const GURL& url);
126 126
127 // Return the value of the HTTP response header with name 'name'. 'headers' 127 // Return the value of the HTTP response header with name 'name'. 'headers'
128 // should be in the format that URLRequest::GetResponseHeaders() returns. 128 // should be in the format that net::URLRequest::GetResponseHeaders() returns.
129 // Returns the empty string if the header is not found. 129 // Returns the empty string if the header is not found.
130 std::wstring GetSpecificHeader(const std::wstring& headers, 130 std::wstring GetSpecificHeader(const std::wstring& headers,
131 const std::wstring& name); 131 const std::wstring& name);
132 std::string GetSpecificHeader(const std::string& headers, 132 std::string GetSpecificHeader(const std::string& headers,
133 const std::string& name); 133 const std::string& name);
134 134
135 // Return the value of the HTTP response header field's parameter named 135 // Return the value of the HTTP response header field's parameter named
136 // 'param_name'. Returns the empty string if the parameter is not found or is 136 // 'param_name'. Returns the empty string if the parameter is not found or is
137 // improperly formatted. 137 // improperly formatted.
138 std::wstring GetHeaderParamValue(const std::wstring& field, 138 std::wstring GetHeaderParamValue(const std::wstring& field,
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 394
395 // Returns the port field of the sockaddr in |info|. 395 // Returns the port field of the sockaddr in |info|.
396 uint16* GetPortFieldFromAddrinfo(const struct addrinfo* info); 396 uint16* GetPortFieldFromAddrinfo(const struct addrinfo* info);
397 397
398 // Returns the value of |info's| port (in host byte ordering). 398 // Returns the value of |info's| port (in host byte ordering).
399 int GetPortFromAddrinfo(const struct addrinfo* info); 399 int GetPortFromAddrinfo(const struct addrinfo* info);
400 400
401 } // namespace net 401 } // namespace net
402 402
403 #endif // NET_BASE_NET_UTIL_H_ 403 #endif // NET_BASE_NET_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698