Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h

Issue 2814733002: Add the SocEng as a type for checking in CheckUrlForSubresourceFilter. (Closed)
Patch Set: . Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // Returns whether a main-frame navigation to the given |url| satisfies the 140 // Returns whether a main-frame navigation to the given |url| satisfies the
141 // activation |conditions| of a given configuration, except for |priority|. 141 // activation |conditions| of a given configuration, except for |priority|.
142 bool DoesMainFrameURLSatisfyActivationConditions( 142 bool DoesMainFrameURLSatisfyActivationConditions(
143 const GURL& url, 143 const GURL& url,
144 const Configuration::ActivationConditions& conditions) const; 144 const Configuration::ActivationConditions& conditions) const;
145 145
146 bool DidURLMatchActivationList(const GURL& url, 146 bool DidURLMatchActivationList(const GURL& url,
147 ActivationList activation_list) const; 147 ActivationList activation_list) const;
148 148
149 void AddActivationListMatch(const GURL& url, ActivationList match_type); 149 void AddActivationListMatch(const GURL& url, ActivationList match_type);
150 int CalculateHitPatternForActivationList(
151 ActivationList activation_list) const;
152 void RecordRedirectChainMatchPattern() const; 150 void RecordRedirectChainMatchPattern() const;
153 151
154 void RecordRedirectChainMatchPatternForList( 152 void RecordRedirectChainMatchPatternForList(
155 ActivationList activation_list) const; 153 ActivationList activation_list) const;
156 154
157 // Must outlive this class. 155 // Must outlive this class.
158 SubresourceFilterClient* client_; 156 SubresourceFilterClient* client_;
159 157
160 std::unique_ptr<ContentSubresourceFilterThrottleManager> throttle_manager_; 158 std::unique_ptr<ContentSubresourceFilterThrottleManager> throttle_manager_;
161 159
(...skipping 21 matching lines...) Expand all
183 std::vector<GURL> navigation_chain_; 181 std::vector<GURL> navigation_chain_;
184 182
185 URLToActivationListsMap activation_list_matches_; 183 URLToActivationListsMap activation_list_matches_;
186 184
187 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory); 185 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory);
188 }; 186 };
189 187
190 } // namespace subresource_filter 188 } // namespace subresource_filter
191 189
192 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FIL TER_DRIVER_FACTORY_H_ 190 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FIL TER_DRIVER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698