diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 18:03:09 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 18:03:09 +0000 |
commit | 2681688fc8449fe1cc6b2f66267fcf04f0327ea1 (patch) | |
tree | 424611ca258e9699de6b63349e1d0fba118144a3 /net/http/http_stream_factory.h | |
parent | 0f337f026ad2bca4d3eda9bb1cb8e5c9dc2dd7f3 (diff) | |
download | chromium_src-2681688fc8449fe1cc6b2f66267fcf04f0327ea1.zip chromium_src-2681688fc8449fe1cc6b2f66267fcf04f0327ea1.tar.gz chromium_src-2681688fc8449fe1cc6b2f66267fcf04f0327ea1.tar.bz2 |
Cleanup StreamFactory && StreamRequest APIs.
Stop refcounting StreamRequest. Establish a clear ownership of the StreamRequest. Deletion implies cancellation. Use ScopedRunnableMethodFactory::NewRunnableMethod() instead of NewRunnableMethod().
Remove Start() from StreamRequest. This is an implementation detail of HttpStreamRequest, so it only exists there now.
BUG=59103
TEST=existing, this is a pure refactor.
Review URL: http://codereview.chromium.org/3746002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62581 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_stream_factory.h')
-rw-r--r-- | net/http/http_stream_factory.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/net/http/http_stream_factory.h b/net/http/http_stream_factory.h index 08da415..b9f5586 100644 --- a/net/http/http_stream_factory.h +++ b/net/http/http_stream_factory.h @@ -30,13 +30,12 @@ class HttpStreamFactory : public StreamFactory, virtual ~HttpStreamFactory(); // StreamFactory Interface - virtual void RequestStream(const HttpRequestInfo* info, - SSLConfig* ssl_config, - ProxyInfo* proxy_info, - StreamRequestDelegate* delegate, - const BoundNetLog& net_log, - const scoped_refptr<HttpNetworkSession>& session, - scoped_refptr<StreamRequestJob>* stream); + virtual StreamRequest* RequestStream(const HttpRequestInfo* info, + SSLConfig* ssl_config, + ProxyInfo* proxy_info, + HttpNetworkSession* session, + StreamRequest::Delegate* delegate, + const BoundNetLog& net_log); // TLS Intolerant Server API void AddTLSIntolerantServer(const GURL& url); |