OLD | NEW |
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 #include "url/gurl.h" | 5 #include "url/gurl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | |
9 #include <algorithm> | 8 #include <algorithm> |
10 #include <ostream> | 9 #include <ostream> |
11 | 10 |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
13 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
14 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 #include "url/url_canon.h" |
15 #include "url/url_canon_stdstring.h" | 15 #include "url/url_canon_stdstring.h" |
16 #include "url/url_util.h" | 16 #include "url/url_util.h" |
17 | 17 |
18 #ifdef WIN32 | 18 #ifdef WIN32 |
19 #include <windows.h> | 19 #include <windows.h> |
20 #else | 20 #else |
21 #include <pthread.h> | 21 #include <pthread.h> |
22 #endif | 22 #endif |
23 | 23 |
24 namespace { | 24 namespace { |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 void GURL::Swap(GURL* other) { | 532 void GURL::Swap(GURL* other) { |
533 spec_.swap(other->spec_); | 533 spec_.swap(other->spec_); |
534 std::swap(is_valid_, other->is_valid_); | 534 std::swap(is_valid_, other->is_valid_); |
535 std::swap(parsed_, other->parsed_); | 535 std::swap(parsed_, other->parsed_); |
536 inner_url_.swap(other->inner_url_); | 536 inner_url_.swap(other->inner_url_); |
537 } | 537 } |
538 | 538 |
539 std::ostream& operator<<(std::ostream& out, const GURL& url) { | 539 std::ostream& operator<<(std::ostream& out, const GURL& url) { |
540 return out << url.possibly_invalid_spec(); | 540 return out << url.possibly_invalid_spec(); |
541 } | 541 } |
OLD | NEW |