OLD | NEW |
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 CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_HANDLER_H_ |
6 #define CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_HANDLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "content/browser/loader/resource_handler.h" | 12 #include "content/browser/loader/resource_handler.h" |
13 #include "content/browser/loader/stream_writer.h" | 13 #include "content/browser/loader/stream_writer.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 class SSLInfo; | 16 class SSLInfo; |
17 } | 17 } |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 class NavigationURLLoaderImplCore; | 20 class NavigationURLLoaderImplCore; |
21 class ResourceController; | 21 class ResourceController; |
22 class ResourceDispatcherHostDelegate; | 22 class ResourceDispatcherHostDelegate; |
23 struct SSLStatus; | 23 struct SSLStatus; |
24 | 24 |
25 // PlzNavigate: The leaf ResourceHandler used with NavigationURLLoaderImplCore. | 25 // PlzNavigate: The leaf ResourceHandler used with NavigationURLLoaderImplCore. |
26 class NavigationResourceHandler : public ResourceHandler { | 26 class NavigationResourceHandler : public ResourceHandler { |
27 public: | 27 public: |
28 static void GetSSLStatusForRequest(const GURL& url, | 28 static void GetSSLStatusForRequest(const net::SSLInfo& ssl_info, |
29 const net::SSLInfo& ssl_info, | |
30 int child_id, | |
31 SSLStatus* ssl_status); | 29 SSLStatus* ssl_status); |
32 | 30 |
33 NavigationResourceHandler( | 31 NavigationResourceHandler( |
34 net::URLRequest* request, | 32 net::URLRequest* request, |
35 NavigationURLLoaderImplCore* core, | 33 NavigationURLLoaderImplCore* core, |
36 ResourceDispatcherHostDelegate* resource_dispatcher_host_delegate); | 34 ResourceDispatcherHostDelegate* resource_dispatcher_host_delegate); |
37 ~NavigationResourceHandler() override; | 35 ~NavigationResourceHandler() override; |
38 | 36 |
39 // Called by the loader the cancel the request. | 37 // Called by the loader the cancel the request. |
40 void Cancel(); | 38 void Cancel(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 scoped_refptr<NavigationURLLoaderImplCore> core_; | 74 scoped_refptr<NavigationURLLoaderImplCore> core_; |
77 StreamWriter writer_; | 75 StreamWriter writer_; |
78 ResourceDispatcherHostDelegate* resource_dispatcher_host_delegate_; | 76 ResourceDispatcherHostDelegate* resource_dispatcher_host_delegate_; |
79 | 77 |
80 DISALLOW_COPY_AND_ASSIGN(NavigationResourceHandler); | 78 DISALLOW_COPY_AND_ASSIGN(NavigationResourceHandler); |
81 }; | 79 }; |
82 | 80 |
83 } // namespace content | 81 } // namespace content |
84 | 82 |
85 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_HANDLER_H_ | 83 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_HANDLER_H_ |
OLD | NEW |