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

Unified Diff: net/cookies/canonical_cookie.h

Issue 2103863003: Make CanonicalCookie::Source() private. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@source
Patch Set: Merge Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/net/cookies/system_cookie_util_unittest.mm ('k') | net/cookies/canonical_cookie.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/canonical_cookie.h
diff --git a/net/cookies/canonical_cookie.h b/net/cookies/canonical_cookie.h
index 00a2dd8d862799eabf0ad2d1ac6cc2c84a55df47..20e407b06ee3bca152ddbb76a9bb7bdf0485f03f 100644
--- a/net/cookies/canonical_cookie.h
+++ b/net/cookies/canonical_cookie.h
@@ -86,7 +86,6 @@ class NET_EXPORT CanonicalCookie {
CookieSameSite same_site,
CookiePriority priority);
- const GURL& Source() const { return source_; }
const std::string& Name() const { return name_; }
const std::string& Value() const { return value_; }
const std::string& Domain() const { return domain_; }
@@ -198,6 +197,8 @@ class NET_EXPORT CanonicalCookie {
const GURL& url,
const ParsedCookie& parsed_cookie);
+ const GURL& Source() const { return source_; }
+
// The source member of a canonical cookie is the origin of the URL that tried
// to set this cookie. This field is not persistent though; its only used in
// the in-tab cookies dialog to show the user the source URL. This is used for
« no previous file with comments | « ios/net/cookies/system_cookie_util_unittest.mm ('k') | net/cookies/canonical_cookie.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698