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

Side by Side Diff: url/gurl.h

Issue 1851933002: Convert //url to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU fixup 7 Created 4 years, 8 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 | « net/quic/quic_stream_sequencer_buffer_test.cc ('k') | url/run_all_unittests.cc » ('j') | no next file with comments »
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 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
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_
OLDNEW
« no previous file with comments | « net/quic/quic_stream_sequencer_buffer_test.cc ('k') | url/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698