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

Side by Side Diff: net/http/http_util_icu.cc

Issue 213017: Moving two http utility functions to a separate source file due to dependency... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « net/http/http_util.cc ('k') | net/net.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
darin (slow to review) 2009/09/18 04:29:14 please update the copyright date to include 2009
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // The rules for parsing content-types were borrowed from Firefox:
6 // http://lxr.mozilla.org/mozilla/source/netwerk/base/src/nsURLHelper.cpp#834
7
8 #include "net/http/http_util.h"
9
10 #include "base/logging.h"
11
darin (slow to review) 2009/09/18 04:29:14 nit: there should be no newline here.
12 #include "net/base/net_util.h"
13
14 namespace net {
15
16 // static
17 std::string HttpUtil::PathForRequest(const GURL& url) {
18 DCHECK(url.is_valid() && (url.SchemeIs("http") || url.SchemeIs("https")));
19 if (url.has_query())
20 return url.path() + "?" + url.query();
21 return url.path();
22 }
23
24 // static
25 std::string HttpUtil::SpecForRequest(const GURL& url) {
26 DCHECK(url.is_valid() && (url.SchemeIs("http") || url.SchemeIs("https")));
27 return SimplifyUrlForRequest(url).spec();
28 }
29
30 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_util.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698