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

Unified Diff: net/socket_stream/socket_stream_job.cc

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_job.h ('k') | net/socket_stream/socket_stream_job_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket_stream/socket_stream_job.cc
===================================================================
--- net/socket_stream/socket_stream_job.cc (revision 256594)
+++ net/socket_stream/socket_stream_job.cc (working copy)
@@ -24,7 +24,9 @@
const GURL& url,
SocketStream::Delegate* delegate,
TransportSecurityState* sts,
- SSLConfigService* ssl) {
+ SSLConfigService* ssl,
+ URLRequestContext* context,
+ CookieStore* cookie_store) {
GURL socket_url(url);
TransportSecurityState::DomainState domain_state;
if (url.scheme() == "ws" && sts && sts->GetDomainState(
@@ -36,7 +38,8 @@
url_parse::Component(0, strlen(kNewScheme)));
socket_url = url.ReplaceComponents(replacements);
}
- return SocketStreamJobManager::GetInstance()->CreateJob(socket_url, delegate);
+ return SocketStreamJobManager::GetInstance()->CreateJob(
+ socket_url, delegate, context, cookie_store);
}
SocketStreamJob::SocketStreamJob() {}
@@ -82,6 +85,11 @@
socket_->DetachDelegate();
}
+void SocketStreamJob::DetachContext() {
+ if (socket_.get())
+ socket_->DetachContext();
+}
+
SocketStreamJob::~SocketStreamJob() {}
} // namespace net
« no previous file with comments | « net/socket_stream/socket_stream_job.h ('k') | net/socket_stream/socket_stream_job_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698