OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "components/subresource_filter/content/browser/content_subresource_filt
er_throttle_manager.h" | 5 #include "components/subresource_filter/content/browser/content_subresource_filt
er_throttle_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "components/subresource_filter/content/browser/activation_state_computi
ng_navigation_throttle.h" | 10 #include "components/subresource_filter/content/browser/activation_state_computi
ng_navigation_throttle.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 ContentSubresourceFilterThrottleManager::Delegate* delegate) | 32 ContentSubresourceFilterThrottleManager::Delegate* delegate) |
33 : content::NavigationThrottle(handle), delegate_(delegate) {} | 33 : content::NavigationThrottle(handle), delegate_(delegate) {} |
34 ~ForwardingNavigationThrottle() override {} | 34 ~ForwardingNavigationThrottle() override {} |
35 | 35 |
36 // content::NavigationThrottle: | 36 // content::NavigationThrottle: |
37 content::NavigationThrottle::ThrottleCheckResult WillProcessResponse() | 37 content::NavigationThrottle::ThrottleCheckResult WillProcessResponse() |
38 override { | 38 override { |
39 delegate_->WillProcessResponse(navigation_handle()); | 39 delegate_->WillProcessResponse(navigation_handle()); |
40 return content::NavigationThrottle::PROCEED; | 40 return content::NavigationThrottle::PROCEED; |
41 } | 41 } |
| 42 const char* GetNameForLogging() override { |
| 43 return "ForwardingNavigationThrottle"; |
| 44 } |
42 | 45 |
43 private: | 46 private: |
44 ContentSubresourceFilterThrottleManager::Delegate* delegate_; | 47 ContentSubresourceFilterThrottleManager::Delegate* delegate_; |
45 | 48 |
46 DISALLOW_COPY_AND_ASSIGN(ForwardingNavigationThrottle); | 49 DISALLOW_COPY_AND_ASSIGN(ForwardingNavigationThrottle); |
47 }; | 50 }; |
48 | 51 |
49 } // namespace | 52 } // namespace |
50 | 53 |
51 bool ContentSubresourceFilterThrottleManager::Delegate:: | 54 bool ContentSubresourceFilterThrottleManager::Delegate:: |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 } | 265 } |
263 } | 266 } |
264 | 267 |
265 void ContentSubresourceFilterThrottleManager::OnDocumentLoadStatistics( | 268 void ContentSubresourceFilterThrottleManager::OnDocumentLoadStatistics( |
266 const DocumentLoadStatistics& statistics) { | 269 const DocumentLoadStatistics& statistics) { |
267 if (statistics_) | 270 if (statistics_) |
268 statistics_->OnDocumentLoadStatistics(statistics); | 271 statistics_->OnDocumentLoadStatistics(statistics); |
269 } | 272 } |
270 | 273 |
271 } // namespace subresource_filter | 274 } // namespace subresource_filter |
OLD | NEW |