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

Side by Side Diff: content/browser/net/url_request_insecure_interceptor.h

Issue 2445993006: [WIP] Upgrade-insecure-request: upgrade insecurely-redirected requests.
Patch Set: bugfix Created 4 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
(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_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.cc ('k') | content/browser/net/url_request_insecure_interceptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698