| 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..76c132edfe15be21a89c1304d2273d94e7edeb22 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,12 @@ class NET_EXPORT SocketStream
|
| // actions on alert dialog or browser cached such kinds of user actions.
|
| void ContinueDespiteError();
|
|
|
| + // Returns the URL to be used for cookie policy checking. Note that
|
| + // this may be different than |url|; for example, the cookie policy
|
| + // for a ws:// URL is based upon the http:// scheme for that
|
| + // host:port pair.
|
| + static GURL GetURLForCookies(const GURL& url);
|
| +
|
| protected:
|
| friend class base::RefCountedThreadSafe<SocketStream>;
|
| virtual ~SocketStream();
|
|
|