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

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

Issue 2795053002: [subresource_filter] Implement the "Smart" UI on Android (Closed)
Patch Set: fix tests Created 3 years, 8 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 <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 // Reloads the page and inserts the host of its URL to the whitelist. 107 // Reloads the page and inserts the host of its URL to the whitelist.
108 void OnReloadRequested(); 108 void OnReloadRequested();
109 109
110 // Returns the |ActivationDecision| for the current main frame 110 // Returns the |ActivationDecision| for the current main frame
111 // document. 111 // document.
112 ActivationDecision GetActivationDecisionForLastCommittedPageLoad() const { 112 ActivationDecision GetActivationDecisionForLastCommittedPageLoad() const {
113 return activation_decision_; 113 return activation_decision_;
114 } 114 }
115 115
116 SubresourceFilterClient* client() { return client_.get(); }
117
116 private: 118 private:
117 friend class ContentSubresourceFilterDriverFactoryTest; 119 friend class ContentSubresourceFilterDriverFactoryTest;
118 friend class safe_browsing::SafeBrowsingServiceTest; 120 friend class safe_browsing::SafeBrowsingServiceTest;
119 121
120 void ResetActivationState(); 122 void ResetActivationState();
121 123
122 void OnFirstSubresourceLoadDisallowed(); 124 void OnFirstSubresourceLoadDisallowed();
123 125
124 void OnDocumentLoadStatistics(const DocumentLoadStatistics& statistics); 126 void OnDocumentLoadStatistics(const DocumentLoadStatistics& statistics);
125 127
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // Statistics about subresource loads, aggregated across all frames of the 183 // Statistics about subresource loads, aggregated across all frames of the
182 // current page. 184 // current page.
183 DocumentLoadStatistics aggregated_document_statistics_; 185 DocumentLoadStatistics aggregated_document_statistics_;
184 186
185 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory); 187 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory);
186 }; 188 };
187 189
188 } // namespace subresource_filter 190 } // namespace subresource_filter
189 191
190 #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

Powered by Google App Engine
This is Rietveld 408576698