Lines Matching refs:parsed_
70 parsed_(other.parsed_) {
95 parsed_(parsed) {
101 parsed_(parsed) {
114 NULL, &output, &parsed_);
118 inner_url_.reset(new GURL(spec_.data(), parsed_.Length(),
119 *parsed_.inner_parsed(), true));
126 new GURL(spec_.data(), parsed_.Length(),
127 *parsed_.inner_parsed(), true));
141 scheme.begin == parsed_.scheme.begin) {
142 // We need to retain trailing whitespace on path URLs, as the |parsed_|
151 DCHECK(test_url.parsed_.scheme == parsed_.scheme);
152 DCHECK(test_url.parsed_.username == parsed_.username);
153 DCHECK(test_url.parsed_.password == parsed_.password);
154 DCHECK(test_url.parsed_.host == parsed_.host);
155 DCHECK(test_url.parsed_.port == parsed_.port);
156 DCHECK(test_url.parsed_.path == parsed_.path);
157 DCHECK(test_url.parsed_.query == parsed_.query);
158 DCHECK(test_url.parsed_.ref == parsed_.ref);
203 parsed_, relative.data(),
205 charset_converter, &output, &result.parsed_)) {
214 new GURL(result.spec_.data(), result.parsed_.Length(),
215 *result.parsed_.inner_parsed(), true));
236 parsed_, relative.data(),
238 charset_converter, &output, &result.parsed_)) {
247 new GURL(result.spec_.data(), result.parsed_.Length(),
248 *result.parsed_.inner_parsed(), true));
268 spec_.data(), static_cast<int>(spec_.length()), parsed_, replacements,
269 NULL, &output, &result.parsed_);
273 result.inner_url_.reset(new GURL(spec_.data(), result.parsed_.Length(),
274 *result.parsed_.inner_parsed(), true));
294 spec_.data(), static_cast<int>(spec_.length()), parsed_, replacements,
295 NULL, &output, &result.parsed_);
299 result.inner_url_.reset(new GURL(spec_.data(), result.parsed_.Length(),
300 *result.parsed_.inner_parsed(), true));
345 if (parsed_.path.len == 0)
349 other.parsed_.query.reset();
350 other.parsed_.ref.reset();
354 other.spec_[other.parsed_.path.begin] = '/';
355 other.parsed_.path.len = 1;
356 other.spec_.resize(other.parsed_.path.begin + 1);
361 return url::IsStandard(spec_.data(), parsed_.scheme);
365 if (parsed_.scheme.len <= 0)
367 return url::LowerCaseEqualsASCII(spec_.data() + parsed_.scheme.begin,
368 spec_.data() + parsed_.scheme.end(),
381 if (parsed_.port.is_nonempty())
382 return url::ParsePort(spec_.data(), parsed_.port);
389 return url::DefaultPortForScheme(spec_.data() + parsed_.scheme.begin,
390 parsed_.scheme.len);
396 url::ExtractFileName(spec_.data(), parsed_.path, &file_component);
401 DCHECK(parsed_.path.len > 0) << "Canonical path for requests should be non-empty";
402 if (parsed_.ref.len >= 0) {
405 return std::string(spec_, parsed_.path.begin,
406 parsed_.ref.begin - parsed_.path.begin - 1);
411 int path_len = parsed_.path.len;
412 if (parsed_.query.is_valid())
413 path_len = parsed_.query.end() - parsed_.path.begin;
415 return std::string(spec_, parsed_.path.begin, path_len);
420 url::Component h(parsed_.host);
429 return is_valid_ ? ComponentString(parsed_.GetContent()) : std::string();
438 url::CanonicalizeIPAddress(spec_.c_str(), parsed_.host, &ignored_output,
481 // FileSystem URLs have empty parsed_.host, so check this first.
485 if (!parsed_.host.is_nonempty())
491 const char* last_pos = spec_.data() + parsed_.host.end() - 1;
492 int host_len = parsed_.host.len;
503 const char* start_pos = spec_.data() + parsed_.host.begin +
525 std::swap(parsed_, other->parsed_);