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

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

Issue 2871013002: [subresource_filter] Refactor activation suppression (Closed)
Patch Set: rebase on #470635 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
« no previous file with comments | « no previous file | components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698