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

Side by Side Diff: url/gurl.h

Issue 1561693003: IWYU fixes for url/... Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added IWYU-pragma-keep in a few places. Created 4 years, 11 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
« no previous file with comments | « url/DEPS ('k') | url/gurl.cc » ('j') | url/url_canon_fileurl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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_
OLDNEW
« no previous file with comments | « url/DEPS ('k') | url/gurl.cc » ('j') | url/url_canon_fileurl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698