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

Unified Diff: net/socket_stream/socket_stream_job.h

Issue 197043005: original change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: fix other build error Created 6 years, 9 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/socket_stream/socket_stream.cc ('k') | net/socket_stream/socket_stream_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket_stream/socket_stream_job.h
===================================================================
--- net/socket_stream/socket_stream_job.h (revision 256594)
+++ net/socket_stream/socket_stream_job.h (working copy)
@@ -15,6 +15,7 @@
namespace net {
+class CookieStore;
class SSLConfigService;
class SSLInfo;
class TransportSecurityState;
@@ -30,7 +31,9 @@
public:
// Callback function implemented by protocol handlers to create new jobs.
typedef SocketStreamJob* (ProtocolFactory)(const GURL& url,
- SocketStream::Delegate* delegate);
+ SocketStream::Delegate* delegate,
+ URLRequestContext* context,
+ CookieStore* cookie_store);
static ProtocolFactory* RegisterProtocolFactory(const std::string& scheme,
ProtocolFactory* factory);
@@ -39,7 +42,9 @@
const GURL& url,
SocketStream::Delegate* delegate,
TransportSecurityState* sts,
- SSLConfigService* ssl);
+ SSLConfigService* ssl,
+ URLRequestContext* context,
+ CookieStore* cookie_store);
SocketStreamJob();
void InitSocketStream(SocketStream* socket) {
@@ -52,9 +57,8 @@
URLRequestContext* context() const {
return socket_.get() ? socket_->context() : 0;
}
- void set_context(URLRequestContext* context) {
- if (socket_.get())
- socket_->set_context(context);
+ CookieStore* cookie_store() const {
+ return socket_.get() ? socket_->cookie_store() : 0;
}
virtual void Connect();
@@ -73,6 +77,8 @@
virtual void DetachDelegate();
+ virtual void DetachContext();
+
protected:
friend class WebSocketJobTest;
friend class base::RefCountedThreadSafe<SocketStreamJob>;
« no previous file with comments | « net/socket_stream/socket_stream.cc ('k') | net/socket_stream/socket_stream_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698