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

Side by Side Diff: Source/platform/weborigin/KURL.h

Issue 874393006: Clear username and password from location.href when basic HTTP (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add LayoutTests. Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/Location.cpp ('k') | Source/platform/weborigin/KURL.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All r ights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All r ights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 KURL(const KURL& base, const String& relative, const WTF::TextEncoding&); 73 KURL(const KURL& base, const String& relative, const WTF::TextEncoding&);
74 74
75 // For conversions from other structures that have already parsed and 75 // For conversions from other structures that have already parsed and
76 // canonicalized the URL. The input must be exactly what KURL would have 76 // canonicalized the URL. The input must be exactly what KURL would have
77 // done with the same input. 77 // done with the same input.
78 KURL(const AtomicString& canonicalString, const url::Parsed&, bool isValid); 78 KURL(const AtomicString& canonicalString, const url::Parsed&, bool isValid);
79 79
80 ~KURL(); 80 ~KURL();
81 81
82 String strippedForUseAsReferrer() const; 82 String strippedForUseAsReferrer() const;
83 String strippedForUseAsHref() const;
83 84
84 // FIXME: The above functions should be harmonized so that passing a 85 // FIXME: The above functions should be harmonized so that passing a
85 // base of null or the empty string gives the same result as the 86 // base of null or the empty string gives the same result as the
86 // standard String constructor. 87 // standard String constructor.
87 88
88 // Makes a deep copy. Helpful only if you need to use a KURL on another 89 // Makes a deep copy. Helpful only if you need to use a KURL on another
89 // thread. Since the underlying StringImpl objects are immutable, there's 90 // thread. Since the underlying StringImpl objects are immutable, there's
90 // no other reason to ever prefer copy() over plain old assignment. 91 // no other reason to ever prefer copy() over plain old assignment.
91 KURL copy() const; 92 KURL copy() const;
92 93
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 namespace WTF { 264 namespace WTF {
264 265
265 // KURLHash is the default hash for String 266 // KURLHash is the default hash for String
266 template<> struct DefaultHash<blink::KURL> { 267 template<> struct DefaultHash<blink::KURL> {
267 typedef blink::KURLHash Hash; 268 typedef blink::KURLHash Hash;
268 }; 269 };
269 270
270 } // namespace WTF 271 } // namespace WTF
271 272
272 #endif // KURL_h 273 #endif // KURL_h
OLDNEW
« no previous file with comments | « Source/core/frame/Location.cpp ('k') | Source/platform/weborigin/KURL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698