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

Side by Side Diff: net/url_request/url_request_intercepting_job_factory.h

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_URL_REQUEST_URL_REQUEST_INTERCEPTING_JOB_FACTORY_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_INTERCEPTING_JOB_FACTORY_H_
6 #define NET_URL_REQUEST_URL_REQUEST_INTERCEPTING_JOB_FACTORY_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_INTERCEPTING_JOB_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 URLRequestInterceptingJobFactory( 35 URLRequestInterceptingJobFactory(
36 scoped_ptr<URLRequestJobFactory> job_factory, 36 scoped_ptr<URLRequestJobFactory> job_factory,
37 scoped_ptr<URLRequestInterceptor> interceptor); 37 scoped_ptr<URLRequestInterceptor> interceptor);
38 ~URLRequestInterceptingJobFactory() override; 38 ~URLRequestInterceptingJobFactory() override;
39 39
40 // URLRequestJobFactory implementation 40 // URLRequestJobFactory implementation
41 URLRequestJob* MaybeCreateJobWithProtocolHandler( 41 URLRequestJob* MaybeCreateJobWithProtocolHandler(
42 const std::string& scheme, 42 const std::string& scheme,
43 URLRequest* request, 43 URLRequest* request,
44 NetworkDelegate* network_delegate) const override; 44 NetworkDelegate* network_delegate) const override;
45
46 URLRequestJob* MaybeInterceptRedirect(
47 URLRequest* request,
48 NetworkDelegate* network_delegate,
49 const GURL& location) const override;
50
51 URLRequestJob* MaybeInterceptResponse(
52 URLRequest* request,
53 NetworkDelegate* network_delegate) const override;
54
45 bool IsHandledProtocol(const std::string& scheme) const override; 55 bool IsHandledProtocol(const std::string& scheme) const override;
46 bool IsHandledURL(const GURL& url) const override; 56 bool IsHandledURL(const GURL& url) const override;
47 bool IsSafeRedirectTarget(const GURL& location) const override; 57 bool IsSafeRedirectTarget(const GURL& location) const override;
48 58
49 private: 59 private:
50 scoped_ptr<URLRequestJobFactory> job_factory_; 60 scoped_ptr<URLRequestJobFactory> job_factory_;
51 scoped_ptr<URLRequestInterceptor> interceptor_; 61 scoped_ptr<URLRequestInterceptor> interceptor_;
52 62
53 DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptingJobFactory); 63 DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptingJobFactory);
54 }; 64 };
55 65
56 } // namespace net 66 } // namespace net
57 67
58 #endif // NET_URL_REQUEST_URL_REQUEST_INTERCEPTING_JOB_FACTORY_H_ 68 #endif // NET_URL_REQUEST_URL_REQUEST_INTERCEPTING_JOB_FACTORY_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_file_job_unittest.cc ('k') | net/url_request/url_request_intercepting_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698