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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 // Called when Safe Browsing detects that the |url| corresponding to the load | 66 // Called when Safe Browsing detects that the |url| corresponding to the load |
67 // of the main frame belongs to the blacklist with |threat_type|. If the | 67 // of the main frame belongs to the blacklist with |threat_type|. If the |
68 // blacklist is the Safe Browsing Social Engineering ads landing, then |url| | 68 // blacklist is the Safe Browsing Social Engineering ads landing, then |url| |
69 // and |redirects| are saved. | 69 // and |redirects| are saved. |
70 void OnMainResourceMatchedSafeBrowsingBlacklist( | 70 void OnMainResourceMatchedSafeBrowsingBlacklist( |
71 const GURL& url, | 71 const GURL& url, |
72 safe_browsing::SBThreatType threat_type, | 72 safe_browsing::SBThreatType threat_type, |
73 safe_browsing::ThreatPatternType threat_type_metadata); | 73 safe_browsing::ThreatPatternType threat_type_metadata); |
74 | 74 |
75 // Reloads the page and inserts the host of its URL to the whitelist. | |
76 void OnReloadRequested(); | |
77 | |
78 // Returns the |ActivationDecision| for the current main frame | 75 // Returns the |ActivationDecision| for the current main frame |
79 // document. | 76 // document. |
80 ActivationDecision GetActivationDecisionForLastCommittedPageLoad() const { | 77 ActivationDecision GetActivationDecisionForLastCommittedPageLoad() const { |
81 return activation_decision_; | 78 return activation_decision_; |
82 } | 79 } |
83 | 80 |
84 // ContentSubresourceFilterThrottleManager::Delegate: | 81 // ContentSubresourceFilterThrottleManager::Delegate: |
85 void OnFirstSubresourceLoadDisallowed() override; | 82 void OnFirstSubresourceLoadDisallowed() override; |
86 void WillProcessResponse( | 83 void WillProcessResponse( |
87 content::NavigationHandle* navigation_handle) override; | 84 content::NavigationHandle* navigation_handle) override; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 Configuration::ActivationOptions activation_options_; | 141 Configuration::ActivationOptions activation_options_; |
145 | 142 |
146 URLToActivationListsMap activation_list_matches_; | 143 URLToActivationListsMap activation_list_matches_; |
147 | 144 |
148 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory); | 145 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory); |
149 }; | 146 }; |
150 | 147 |
151 } // namespace subresource_filter | 148 } // namespace subresource_filter |
152 | 149 |
153 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FIL
TER_DRIVER_FACTORY_H_ | 150 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FIL
TER_DRIVER_FACTORY_H_ |
OLD | NEW |