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

Side by Side Diff: url/url_util.h

Issue 1270443006: Proof-read comments in src/url/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 URL_URL_UTIL_H_ 5 #ifndef URL_URL_UTIL_H_
6 #define URL_URL_UTIL_H_ 6 #define URL_URL_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 Parsed* output_parsed); 137 Parsed* output_parsed);
138 URL_EXPORT bool ResolveRelative(const char* base_spec, 138 URL_EXPORT bool ResolveRelative(const char* base_spec,
139 int base_spec_len, 139 int base_spec_len,
140 const Parsed& base_parsed, 140 const Parsed& base_parsed,
141 const base::char16* relative, 141 const base::char16* relative,
142 int relative_length, 142 int relative_length,
143 CharsetConverter* charset_converter, 143 CharsetConverter* charset_converter,
144 CanonOutput* output, 144 CanonOutput* output,
145 Parsed* output_parsed); 145 Parsed* output_parsed);
146 146
147 // Replaces components in the given VALID input url. The new canonical URL info 147 // Replaces components in the given VALID input URL. The new canonical URL info
148 // is written to output and out_parsed. 148 // is written to output and out_parsed.
149 // 149 //
150 // Returns true if the resulting URL is valid. 150 // Returns true if the resulting URL is valid.
151 URL_EXPORT bool ReplaceComponents(const char* spec, 151 URL_EXPORT bool ReplaceComponents(const char* spec,
152 int spec_len, 152 int spec_len,
153 const Parsed& parsed, 153 const Parsed& parsed,
154 const Replacements<char>& replacements, 154 const Replacements<char>& replacements,
155 CharsetConverter* charset_converter, 155 CharsetConverter* charset_converter,
156 CanonOutput* output, 156 CanonOutput* output,
157 Parsed* out_parsed); 157 Parsed* out_parsed);
158 URL_EXPORT bool ReplaceComponents( 158 URL_EXPORT bool ReplaceComponents(
159 const char* spec, 159 const char* spec,
160 int spec_len, 160 int spec_len,
161 const Parsed& parsed, 161 const Parsed& parsed,
162 const Replacements<base::char16>& replacements, 162 const Replacements<base::char16>& replacements,
163 CharsetConverter* charset_converter, 163 CharsetConverter* charset_converter,
164 CanonOutput* output, 164 CanonOutput* output,
165 Parsed* out_parsed); 165 Parsed* out_parsed);
166 166
167 // String helper functions ---------------------------------------------------- 167 // String helper functions ----------------------------------------------------
168 168
169 // Unescapes the given string using URL escaping rules. 169 // Unescapes the given string using URL escaping rules.
170 URL_EXPORT void DecodeURLEscapeSequences(const char* input, 170 URL_EXPORT void DecodeURLEscapeSequences(const char* input,
171 int length, 171 int length,
172 CanonOutputW* output); 172 CanonOutputW* output);
173 173
174 // Escapes the given string as defined by the JS method encodeURIComponent. See 174 // Escapes the given string as defined by the JS method encodeURIComponent. See
175 // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeUR IComponent 175 // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeUR IComponent
176 URL_EXPORT void EncodeURIComponent(const char* input, 176 URL_EXPORT void EncodeURIComponent(const char* input,
177 int length, 177 int length,
178 CanonOutput* output); 178 CanonOutput* output);
179 179
180 } // namespace url 180 } // namespace url
181 181
182 #endif // URL_URL_UTIL_H_ 182 #endif // URL_URL_UTIL_H_
OLDNEW
« url/gurl.h ('K') | « url/url_test_utils.h ('k') | url/url_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698