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

Unified Diff: net/socket_stream/socket_stream.h

Issue 19269012: Don't persist HPKP if PrivacyMode is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable URLRequestTestHTTP.ProcessPKP_PrivacyMode in chrome_frame_net_tests. Created 7 years, 3 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 | « net/http/transport_security_state_unittest.cc ('k') | net/socket_stream/socket_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket_stream/socket_stream.h
diff --git a/net/socket_stream/socket_stream.h b/net/socket_stream/socket_stream.h
index 90aeb8c54b9bdff0f7873539c465ac848f6764f7..44d18a710dd258424d0a5a21819d6291445e0c4a 100644
--- a/net/socket_stream/socket_stream.h
+++ b/net/socket_stream/socket_stream.h
@@ -124,6 +124,7 @@ class NET_EXPORT SocketStream
void SetUserData(const void* key, UserData* data);
const GURL& url() const { return url_; }
+ GURL url_for_cookies() const { return GetURLForCookies(url_); }
bool is_secure() const;
const AddressList& address_list() const { return addresses_; }
Delegate* delegate() const { return delegate_; }
@@ -180,6 +181,9 @@ class NET_EXPORT SocketStream
// actions on alert dialog or browser cached such kinds of user actions.
void ContinueDespiteError();
+ // Replace ws(s) URL Schema with http(s) for cookie policy checking.
Ryan Sleevi 2013/09/13 22:14:48 1) Why is this public 2) The documentation describ
mef 2013/09/16 15:00:08 It is public to be accessible from SocketStreamJob
Ryan Sleevi 2013/09/17 18:53:03 // Returns the URL to be used for cookie policy ch
mef 2013/09/17 20:38:37 Done.
+ static GURL GetURLForCookies(const GURL& url);
+
protected:
friend class base::RefCountedThreadSafe<SocketStream>;
virtual ~SocketStream();
« no previous file with comments | « net/http/transport_security_state_unittest.cc ('k') | net/socket_stream/socket_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698