| Index: net/url_request/url_request_intercepting_job_factory.h
|
| diff --git a/net/url_request/url_request_intercepting_job_factory.h b/net/url_request/url_request_intercepting_job_factory.h
|
| index e4d616a3b20c1b7b11f33800bd3359278c711801..ab65e39fbcf92c3d5c013c39c2cbf4db2f3cb143 100644
|
| --- a/net/url_request/url_request_intercepting_job_factory.h
|
| +++ b/net/url_request/url_request_intercepting_job_factory.h
|
| @@ -32,9 +32,13 @@ class URLRequestInterceptor;
|
| class NET_EXPORT URLRequestInterceptingJobFactory
|
| : public URLRequestJobFactory {
|
| public:
|
| + // Takes ownership of |job_factory| and |interceptor|.
|
| URLRequestInterceptingJobFactory(
|
| std::unique_ptr<URLRequestJobFactory> job_factory,
|
| std::unique_ptr<URLRequestInterceptor> interceptor);
|
| + // Does not take ownership of |job_factory| and |interceptor|.
|
| + URLRequestInterceptingJobFactory(URLRequestJobFactory* job_factory,
|
| + URLRequestInterceptor* interceptor);
|
| ~URLRequestInterceptingJobFactory() override;
|
|
|
| // URLRequestJobFactory implementation
|
| @@ -57,8 +61,9 @@ class NET_EXPORT URLRequestInterceptingJobFactory
|
| bool IsSafeRedirectTarget(const GURL& location) const override;
|
|
|
| private:
|
| - std::unique_ptr<URLRequestJobFactory> job_factory_;
|
| - std::unique_ptr<URLRequestInterceptor> interceptor_;
|
| + bool owning_;
|
| + URLRequestJobFactory* job_factory_;
|
| + URLRequestInterceptor* interceptor_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptingJobFactory);
|
| };
|
|
|