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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 // Checks base on the value of |url| and current activation scope if | 159 // Checks base on the value of |url| and current activation scope if |
160 // activation signal should be sent. | 160 // activation signal should be sent. |
161 ActivationDecision ComputeActivationDecisionForMainFrameURL( | 161 ActivationDecision ComputeActivationDecisionForMainFrameURL( |
162 const GURL& url) const; | 162 const GURL& url) const; |
163 | 163 |
164 bool DidURLMatchActivationList(const GURL& url, | 164 bool DidURLMatchActivationList(const GURL& url, |
165 ActivationList activation_list) const; | 165 ActivationList activation_list) const; |
166 | 166 |
167 void AddActivationListMatch(const GURL& url, ActivationList match_type); | 167 void AddActivationListMatch(const GURL& url, ActivationList match_type); |
168 int CalculateHitPatternForActivationList( | 168 bool CalculateMatchForActivationList(ActivationList activation_list) const; |
169 ActivationList activation_list) const; | |
170 void RecordRedirectChainMatchPattern() const; | 169 void RecordRedirectChainMatchPattern() const; |
171 | 170 |
172 void RecordRedirectChainMatchPatternForList( | 171 void RecordRedirectChainMatchPatternForList( |
173 ActivationList activation_list) const; | 172 ActivationList activation_list) const; |
174 | 173 |
175 Configuration configuration_; | 174 Configuration configuration_; |
176 | 175 |
177 std::unique_ptr<SubresourceFilterClient> client_; | 176 std::unique_ptr<SubresourceFilterClient> client_; |
178 | 177 |
179 std::unique_ptr<ContentSubresourceFilterThrottleManager> throttle_manager_; | 178 std::unique_ptr<ContentSubresourceFilterThrottleManager> throttle_manager_; |
(...skipping 14 matching lines...) Expand all Loading... |
194 // Statistics about subresource loads, aggregated across all frames of the | 193 // Statistics about subresource loads, aggregated across all frames of the |
195 // current page. | 194 // current page. |
196 DocumentLoadStatistics aggregated_document_statistics_; | 195 DocumentLoadStatistics aggregated_document_statistics_; |
197 | 196 |
198 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory); | 197 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory); |
199 }; | 198 }; |
200 | 199 |
201 } // namespace subresource_filter | 200 } // namespace subresource_filter |
202 | 201 |
203 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FIL
TER_DRIVER_FACTORY_H_ | 202 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FIL
TER_DRIVER_FACTORY_H_ |
OLD | NEW |