| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_CONTENT_SUBRESOURCE_FILTER
_DRIVER_FACTORY_H_ | 5 #ifndef COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FILTER
_DRIVER_FACTORY_H_ |
| 6 #define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FILTER
_DRIVER_FACTORY_H_ | 6 #define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FILTER
_DRIVER_FACTORY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 ActivationDecision GetActivationDecisionForLastCommittedPageLoad() const { | 107 ActivationDecision GetActivationDecisionForLastCommittedPageLoad() const { |
| 108 return activation_decision_; | 108 return activation_decision_; |
| 109 } | 109 } |
| 110 | 110 |
| 111 // ContentSubresourceFilterThrottleManager::Delegate: | 111 // ContentSubresourceFilterThrottleManager::Delegate: |
| 112 void OnFirstSubresourceLoadDisallowed() override; | 112 void OnFirstSubresourceLoadDisallowed() override; |
| 113 bool ShouldSuppressActivation( | 113 bool ShouldSuppressActivation( |
| 114 content::NavigationHandle* navigation_handle) override; | 114 content::NavigationHandle* navigation_handle) override; |
| 115 void WillProcessResponse( | 115 void WillProcessResponse( |
| 116 content::NavigationHandle* navigation_handle) override; | 116 content::NavigationHandle* navigation_handle) override; |
| 117 void OnPageActivated(const ActivationState& activation_state) override; |
| 117 | 118 |
| 118 ContentSubresourceFilterThrottleManager* throttle_manager() { | 119 ContentSubresourceFilterThrottleManager* throttle_manager() { |
| 119 return throttle_manager_.get(); | 120 return throttle_manager_.get(); |
| 120 } | 121 } |
| 121 | 122 |
| 122 SubresourceFilterClient* client() { return client_.get(); } | 123 SubresourceFilterClient* client() { return client_.get(); } |
| 123 | 124 |
| 124 private: | 125 private: |
| 125 friend class ContentSubresourceFilterDriverFactoryTest; | 126 friend class ContentSubresourceFilterDriverFactoryTest; |
| 126 friend class safe_browsing::SafeBrowsingServiceTest; | 127 friend class safe_browsing::SafeBrowsingServiceTest; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 std::vector<GURL> navigation_chain_; | 162 std::vector<GURL> navigation_chain_; |
| 162 | 163 |
| 163 URLToActivationListsMap activation_list_matches_; | 164 URLToActivationListsMap activation_list_matches_; |
| 164 | 165 |
| 165 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory); | 166 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory); |
| 166 }; | 167 }; |
| 167 | 168 |
| 168 } // namespace subresource_filter | 169 } // namespace subresource_filter |
| 169 | 170 |
| 170 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FIL
TER_DRIVER_FACTORY_H_ | 171 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FIL
TER_DRIVER_FACTORY_H_ |
| OLD | NEW |