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

Side by Side Diff: chrome/common/net/url_util.h

Issue 10411025: Reverted 136345 - Ran into GAIA dosserver issues in prod for http://accounts.google.com. We are goi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « chrome/common/net/gaia/oauth_request_signer_unittest.cc ('k') | chrome/common/net/url_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_COMMON_NET_URL_UTIL_H_ 5 #ifndef CHROME_COMMON_NET_URL_UTIL_H_
6 #define CHROME_COMMON_NET_URL_UTIL_H_ 6 #define CHROME_COMMON_NET_URL_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // AppendOrReplaceQueryParameter( 45 // AppendOrReplaceQueryParameter(
46 // GURL("http://example.com"), "name", "new").spec() 46 // GURL("http://example.com"), "name", "new").spec()
47 // => "http://example.com?name=value" 47 // => "http://example.com?name=value"
48 // AppendOrReplaceQueryParameter( 48 // AppendOrReplaceQueryParameter(
49 // GURL("http://example.com?x=y&name=old"), "name", "new").spec() 49 // GURL("http://example.com?x=y&name=old"), "name", "new").spec()
50 // => "http://example.com?x=y&name=new" 50 // => "http://example.com?x=y&name=new"
51 GURL AppendOrReplaceQueryParameter(const GURL& url, 51 GURL AppendOrReplaceQueryParameter(const GURL& url,
52 const std::string& name, 52 const std::string& name,
53 const std::string& value); 53 const std::string& value);
54 54
55 // Looks for |search_key| in the query portion of |url|. Returns true if the
56 // key is found and sets |out_value| to the unescaped value for the key.
57 // Returns false if the key is not found.
58 bool GetValueForKeyInQuery(const GURL& url,
59 const std::string& search_key,
60 std::string* out_value);
61
62 } // namespace chrome_common_net 55 } // namespace chrome_common_net
63 56
64 #endif // CHROME_COMMON_NET_URL_UTIL_H_ 57 #endif // CHROME_COMMON_NET_URL_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/common/net/gaia/oauth_request_signer_unittest.cc ('k') | chrome/common/net/url_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698