| 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 #ifndef COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_FRAME_ACTIVATION_NAVIGATIO
N_THROTTLE_H_ | 5 #ifndef COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_FRAME_ACTIVATION_NAVIGATIO
N_THROTTLE_H_ |
| 6 #define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_FRAME_ACTIVATION_NAVIGATIO
N_THROTTLE_H_ | 6 #define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_FRAME_ACTIVATION_NAVIGATIO
N_THROTTLE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // Must be called at most once before WillProcessResponse is called on this | 48 // Must be called at most once before WillProcessResponse is called on this |
| 49 // throttle. If it is never called, or it is called with a DISABLED state, | 49 // throttle. If it is never called, or it is called with a DISABLED state, |
| 50 // this object will never delay the navigation. | 50 // this object will never delay the navigation. |
| 51 void NotifyPageActivationWithRuleset( | 51 void NotifyPageActivationWithRuleset( |
| 52 VerifiedRuleset::Handle* ruleset_handle, | 52 VerifiedRuleset::Handle* ruleset_handle, |
| 53 const ActivationState& page_activation_state); | 53 const ActivationState& page_activation_state); |
| 54 | 54 |
| 55 // content::NavigationThrottle: | 55 // content::NavigationThrottle: |
| 56 content::NavigationThrottle::ThrottleCheckResult WillProcessResponse() | 56 content::NavigationThrottle::ThrottleCheckResult WillProcessResponse() |
| 57 override; | 57 override; |
| 58 const char* GetNameForLogging() override; |
| 58 | 59 |
| 59 // After the navigation is finished, the client may optionally choose to | 60 // After the navigation is finished, the client may optionally choose to |
| 60 // continue using the DocumentSubresourceFilter that was used to compute the | 61 // continue using the DocumentSubresourceFilter that was used to compute the |
| 61 // activation state for this frame. The transfered filter can be cached and | 62 // activation state for this frame. The transfered filter can be cached and |
| 62 // used to calculate load policy for subframe navigations occuring in this | 63 // used to calculate load policy for subframe navigations occuring in this |
| 63 // frame. | 64 // frame. |
| 64 std::unique_ptr<AsyncDocumentSubresourceFilter> ReleaseFilter(); | 65 std::unique_ptr<AsyncDocumentSubresourceFilter> ReleaseFilter(); |
| 65 | 66 |
| 66 AsyncDocumentSubresourceFilter* filter() { return async_filter_.get(); } | 67 AsyncDocumentSubresourceFilter* filter() { return async_filter_.get(); } |
| 67 | 68 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 96 | 97 |
| 97 base::WeakPtrFactory<ActivationStateComputingNavigationThrottle> | 98 base::WeakPtrFactory<ActivationStateComputingNavigationThrottle> |
| 98 weak_ptr_factory_; | 99 weak_ptr_factory_; |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(ActivationStateComputingNavigationThrottle); | 101 DISALLOW_COPY_AND_ASSIGN(ActivationStateComputingNavigationThrottle); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace subresource_filter | 104 } // namespace subresource_filter |
| 104 | 105 |
| 105 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_FRAME_ACTIVATION_NAVIGA
TION_THROTTLE_H_ | 106 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_FRAME_ACTIVATION_NAVIGA
TION_THROTTLE_H_ |
| OLD | NEW |