| Index: trunk/src/net/socket_stream/socket_stream.h
|
| ===================================================================
|
| --- trunk/src/net/socket_stream/socket_stream.h (revision 256581)
|
| +++ trunk/src/net/socket_stream/socket_stream.h (working copy)
|
| @@ -19,7 +19,6 @@
|
| #include "net/base/net_export.h"
|
| #include "net/base/net_log.h"
|
| #include "net/base/privacy_mode.h"
|
| -#include "net/cookies/cookie_store.h"
|
| #include "net/proxy/proxy_service.h"
|
| #include "net/ssl/ssl_config_service.h"
|
| #include "net/url_request/url_request.h"
|
| @@ -115,8 +114,7 @@
|
| virtual ~Delegate() {}
|
| };
|
|
|
| - SocketStream(const GURL& url, Delegate* delegate, URLRequestContext* context,
|
| - CookieStore* cookie_store);
|
| + SocketStream(const GURL& url, Delegate* delegate);
|
|
|
| // The user data allows the clients to associate data with this job.
|
| // Multiple user data values can be stored under different keys.
|
| @@ -132,6 +130,9 @@
|
| int max_pending_send_allowed() const { return max_pending_send_allowed_; }
|
|
|
| URLRequestContext* context() { return context_; }
|
| + // There're some asynchronous operations and members that are constructed from
|
| + // |context|. Be careful when you use this for the second time or more.
|
| + void set_context(URLRequestContext* context);
|
|
|
| const SSLConfig& server_ssl_config() const { return server_ssl_config_; }
|
| PrivacyMode privacy_mode() const { return privacy_mode_; }
|
| @@ -161,9 +162,6 @@
|
| // back.
|
| virtual void DetachDelegate();
|
|
|
| - // Detach the context.
|
| - virtual void DetachContext();
|
| -
|
| const ProxyServer& proxy_server() const;
|
|
|
| // Sets an alternative ClientSocketFactory. Doesn't take ownership of
|
| @@ -182,8 +180,6 @@
|
| // actions on alert dialog or browser cached such kinds of user actions.
|
| void ContinueDespiteError();
|
|
|
| - CookieStore* cookie_store() const;
|
| -
|
| protected:
|
| friend class base::RefCountedThreadSafe<SocketStream>;
|
| virtual ~SocketStream();
|
| @@ -393,9 +389,6 @@
|
|
|
| scoped_ptr<SocketStreamMetrics> metrics_;
|
|
|
| - // Cookie store to use for this socket stream.
|
| - scoped_refptr<CookieStore> cookie_store_;
|
| -
|
| DISALLOW_COPY_AND_ASSIGN(SocketStream);
|
| };
|
|
|
|
|