OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_NET_URL_REQUEST_INSECURE_INTERCEPTOR_H_ |
| 6 #define CONTENT_BROWSER_NET_URL_REQUEST_INSECURE_INTERCEPTOR_H_ |
| 7 |
| 8 #include "net/url_request/url_request_interceptor.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 // An URLRequestInterceptor that upgrade insecure request during redirections. |
| 13 class URLRequestInsecureInterceptor : public net::URLRequestInterceptor { |
| 14 public: |
| 15 URLRequestInsecureInterceptor(); |
| 16 ~URLRequestInsecureInterceptor() override; |
| 17 |
| 18 protected: |
| 19 // Override from net::URLRequestInterceptor: |
| 20 net::URLRequestJob* MaybeInterceptRequest( |
| 21 net::URLRequest* request, |
| 22 net::NetworkDelegate* network_delegate) const override; |
| 23 net::URLRequestJob* MaybeInterceptResponse( |
| 24 net::URLRequest* request, |
| 25 net::NetworkDelegate* network_delegate) const override; |
| 26 net::URLRequestJob* MaybeInterceptRedirect( |
| 27 net::URLRequest* request, |
| 28 net::NetworkDelegate* network_delegate, |
| 29 const GURL& location) const override; |
| 30 |
| 31 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(URLRequestInsecureInterceptor); |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_BROWSER_NET_URL_REQUEST_INTERCEPTOR_H_ |
OLD | NEW |