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 | |
Avi (use Gerrit)
2016/01/07 01:11:03
:(
Can we not lose these newlines? There's a disc
dcheng
2016/01/07 01:20:49
The discussion on C-style seems to indicate lean i
| |
10 #include <iosfwd> | 9 #include <iosfwd> |
11 #include <string> | 10 #include <string> |
12 | 11 |
13 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
14 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
15 #include "base/strings/string_piece.h" | 14 #include "base/strings/string_piece.h" |
16 #include "url/third_party/mozilla/url_parse.h" | 15 #include "url/third_party/mozilla/url_parse.h" |
17 #include "url/url_canon.h" | 16 #include "url/url_canon.h" |
18 #include "url/url_canon_stdstring.h" | 17 #include "url/url_canon_stdstring.h" |
19 #include "url/url_constants.h" | 18 #include "url/url_constants.h" |
20 #include "url/url_export.h" | 19 #include "url/url_export.h" |
21 | 20 |
21 namespace url { | |
22 template <typename CHAR> class Replacements; | |
23 } // namespace url | |
dcheng
2016/01/07 00:25:41
I'm not super familiar with IWYU: I guess it also
Łukasz Anforowicz
2016/01/07 00:44:53
Right. Although in this case I am surprised by th
Nico
2016/01/08 00:34:26
I think in general iwyu doesn't work super well –
Łukasz Anforowicz
2016/01/08 17:26:41
Thanks for the reference - I've added the link to
| |
24 | |
22 // Represents a URL. | 25 // Represents a URL. |
23 // | 26 // |
24 // A parsed canonicalized URL will be guaranteed UTF-8. Only the ref (if | 27 // A parsed canonicalized URL will be guaranteed UTF-8. Only the ref (if |
25 // specified) can be non-ASCII, the host, path, etc. will be guaranteed ASCII | 28 // specified) can be non-ASCII, the host, path, etc. will be guaranteed ASCII |
26 // and any non-ASCII characters will be encoded and % escaped. | 29 // and any non-ASCII characters will be encoded and % escaped. |
27 // | 30 // |
28 // The string representation of a URL is called the spec(). Getting the | 31 // The string representation of a URL is called the spec(). Getting the |
29 // spec will assert if the URL is invalid to help protect against malicious | 32 // spec will assert if the URL is invalid to help protect against malicious |
30 // URLs. If you want the "best effort" canonicalization of an invalid URL, you | 33 // URLs. If you want the "best effort" canonicalization of an invalid URL, you |
31 // can use possibly_invalid_spec(). Test validity with is_valid(). Data and | 34 // can use possibly_invalid_spec(). Test validity with is_valid(). Data and |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
433 url::Parsed parsed_; | 436 url::Parsed parsed_; |
434 | 437 |
435 // Used for nested schemes [currently only filesystem:]. | 438 // Used for nested schemes [currently only filesystem:]. |
436 scoped_ptr<GURL> inner_url_; | 439 scoped_ptr<GURL> inner_url_; |
437 }; | 440 }; |
438 | 441 |
439 // Stream operator so GURL can be used in assertion statements. | 442 // Stream operator so GURL can be used in assertion statements. |
440 URL_EXPORT std::ostream& operator<<(std::ostream& out, const GURL& url); | 443 URL_EXPORT std::ostream& operator<<(std::ostream& out, const GURL& url); |
441 | 444 |
442 #endif // URL_GURL_H_ | 445 #endif // URL_GURL_H_ |
OLD | NEW |