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 #ifndef URL_GURL_H_ | 5 #ifndef URL_GURL_H_ |
6 #define URL_GURL_H_ | 6 #define URL_GURL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <iosfwd> | 10 #include <iosfwd> |
| 11 #include <memory> |
11 #include <string> | 12 #include <string> |
12 | 13 |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "base/strings/string_piece.h" | 15 #include "base/strings/string_piece.h" |
16 #include "url/third_party/mozilla/url_parse.h" | 16 #include "url/third_party/mozilla/url_parse.h" |
17 #include "url/url_canon.h" | 17 #include "url/url_canon.h" |
18 #include "url/url_canon_stdstring.h" | 18 #include "url/url_canon_stdstring.h" |
19 #include "url/url_constants.h" | 19 #include "url/url_constants.h" |
20 #include "url/url_export.h" | 20 #include "url/url_export.h" |
21 | 21 |
22 // Represents a URL. | 22 // Represents a URL. |
23 // | 23 // |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 | 430 |
431 // Set when the given URL is valid. Otherwise, we may still have a spec and | 431 // Set when the given URL is valid. Otherwise, we may still have a spec and |
432 // components, but they may not identify valid resources (for example, an | 432 // components, but they may not identify valid resources (for example, an |
433 // invalid port number, invalid characters in the scheme, etc.). | 433 // invalid port number, invalid characters in the scheme, etc.). |
434 bool is_valid_; | 434 bool is_valid_; |
435 | 435 |
436 // Identified components of the canonical spec. | 436 // Identified components of the canonical spec. |
437 url::Parsed parsed_; | 437 url::Parsed parsed_; |
438 | 438 |
439 // Used for nested schemes [currently only filesystem:]. | 439 // Used for nested schemes [currently only filesystem:]. |
440 scoped_ptr<GURL> inner_url_; | 440 std::unique_ptr<GURL> inner_url_; |
441 }; | 441 }; |
442 | 442 |
443 // Stream operator so GURL can be used in assertion statements. | 443 // Stream operator so GURL can be used in assertion statements. |
444 URL_EXPORT std::ostream& operator<<(std::ostream& out, const GURL& url); | 444 URL_EXPORT std::ostream& operator<<(std::ostream& out, const GURL& url); |
445 | 445 |
446 #endif // URL_GURL_H_ | 446 #endif // URL_GURL_H_ |
OLD | NEW |