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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 void OnReloadRequested(); | 104 void OnReloadRequested(); |
105 | 105 |
106 // Returns the |ActivationDecision| for the current main frame | 106 // Returns the |ActivationDecision| for the current main frame |
107 // document. | 107 // document. |
108 ActivationDecision GetActivationDecisionForLastCommittedPageLoad() const { | 108 ActivationDecision GetActivationDecisionForLastCommittedPageLoad() const { |
109 return activation_decision_; | 109 return activation_decision_; |
110 } | 110 } |
111 | 111 |
112 // ContentSubresourceFilterThrottleManager::Delegate: | 112 // ContentSubresourceFilterThrottleManager::Delegate: |
113 void OnFirstSubresourceLoadDisallowed() override; | 113 void OnFirstSubresourceLoadDisallowed() override; |
114 bool ShouldSuppressActivation( | |
115 content::NavigationHandle* navigation_handle) override; | |
116 void WillProcessResponse( | 114 void WillProcessResponse( |
117 content::NavigationHandle* navigation_handle) override; | 115 content::NavigationHandle* navigation_handle) override; |
118 | 116 |
119 ContentSubresourceFilterThrottleManager* throttle_manager() { | 117 ContentSubresourceFilterThrottleManager* throttle_manager() { |
120 return throttle_manager_.get(); | 118 return throttle_manager_.get(); |
121 } | 119 } |
122 | 120 |
123 SubresourceFilterClient* client() { return client_; } | 121 SubresourceFilterClient* client() { return client_; } |
124 | 122 |
125 private: | 123 private: |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 std::vector<GURL> navigation_chain_; | 183 std::vector<GURL> navigation_chain_; |
186 | 184 |
187 URLToActivationListsMap activation_list_matches_; | 185 URLToActivationListsMap activation_list_matches_; |
188 | 186 |
189 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory); | 187 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory); |
190 }; | 188 }; |
191 | 189 |
192 } // namespace subresource_filter | 190 } // namespace subresource_filter |
193 | 191 |
194 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FIL
TER_DRIVER_FACTORY_H_ | 192 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FIL
TER_DRIVER_FACTORY_H_ |
OLD | NEW |