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

Unified Diff: trunk/src/net/socket_stream/socket_stream_job.h

Issue 197463003: Revert 256579 "Allow the content browser client to specify a spe..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 | « trunk/src/net/socket_stream/socket_stream.cc ('k') | trunk/src/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: trunk/src/net/socket_stream/socket_stream_job.h
===================================================================
--- trunk/src/net/socket_stream/socket_stream_job.h (revision 256581)
+++ trunk/src/net/socket_stream/socket_stream_job.h (working copy)
@@ -15,7 +15,6 @@
namespace net {
-class CookieStore;
class SSLConfigService;
class SSLInfo;
class TransportSecurityState;
@@ -31,9 +30,7 @@
public:
// Callback function implemented by protocol handlers to create new jobs.
typedef SocketStreamJob* (ProtocolFactory)(const GURL& url,
- SocketStream::Delegate* delegate,
- URLRequestContext* context,
- CookieStore* cookie_store);
+ SocketStream::Delegate* delegate);
static ProtocolFactory* RegisterProtocolFactory(const std::string& scheme,
ProtocolFactory* factory);
@@ -42,9 +39,7 @@
const GURL& url,
SocketStream::Delegate* delegate,
TransportSecurityState* sts,
- SSLConfigService* ssl,
- URLRequestContext* context,
- CookieStore* cookie_store);
+ SSLConfigService* ssl);
SocketStreamJob();
void InitSocketStream(SocketStream* socket) {
@@ -57,8 +52,9 @@
URLRequestContext* context() const {
return socket_.get() ? socket_->context() : 0;
}
- CookieStore* cookie_store() const {
- return socket_.get() ? socket_->cookie_store() : 0;
+ void set_context(URLRequestContext* context) {
+ if (socket_.get())
+ socket_->set_context(context);
}
virtual void Connect();
@@ -77,8 +73,6 @@
virtual void DetachDelegate();
- virtual void DetachContext();
-
protected:
friend class WebSocketJobTest;
friend class base::RefCountedThreadSafe<SocketStreamJob>;
« no previous file with comments | « trunk/src/net/socket_stream/socket_stream.cc ('k') | trunk/src/net/socket_stream/socket_stream_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698