| Index: net/url_request/url_request.h
|
| diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
|
| index 7c8e1a95aeff9b95f02f778c4439ad23d3dd8081..4b0d4003f1f1f95811f01011cac3a125236d0cbf 100644
|
| --- a/net/url_request/url_request.h
|
| +++ b/net/url_request/url_request.h
|
| @@ -68,9 +68,10 @@ class IOBuffer;
|
| struct LoadTimingInfo;
|
| class SSLCertRequestInfo;
|
| class SSLInfo;
|
| -class UploadDataStream;
|
| class URLRequestContext;
|
| class URLRequestJob;
|
| +class URLRequestJobFactory;
|
| +class UploadDataStream;
|
| class X509Certificate;
|
|
|
| // This stores the values of the Set-Cookie headers received during the request.
|
| @@ -684,6 +685,14 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
|
| return received_response_content_length_;
|
| }
|
|
|
| + // A custom job factory specific to this request, which will be used to
|
| + // create a new URLRequestJob instead of request_context's job_factory
|
| + // if non-null factory is given.
|
| + void set_job_factory(scoped_ptr<URLRequestJobFactory> job_factory);
|
| + URLRequestJobFactory* job_factory() {
|
| + return job_factory_.get();
|
| + }
|
| +
|
| protected:
|
| // Allow the URLRequestJob class to control the is_pending() flag.
|
| void set_is_pending(bool value) { is_pending_ = value; }
|
| @@ -895,6 +904,9 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe),
|
| // Keeps track of whether or not OnBeforeNetworkStart has been called yet.
|
| bool notified_before_network_start_;
|
|
|
| + // A custom job factory.
|
| + scoped_ptr<URLRequestJobFactory> job_factory_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(URLRequest);
|
| };
|
|
|
|
|