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

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

Issue 2890253002: [subresource_filter] Move OnReloadRequested to the ChromeClient (Closed)
Patch Set: rebase on #473448 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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 ~ContentSubresourceFilterDriverFactory() override; 58 ~ContentSubresourceFilterDriverFactory() override;
59 59
60 // Called when the Safe Browsing throttle has computed the threat type and 60 // Called when the Safe Browsing throttle has computed the threat type and
61 // metadata for this navigation. Will be called once per navigation before 61 // metadata for this navigation. Will be called once per navigation before
62 // the ReadyToCommit stage. 62 // the ReadyToCommit stage.
63 void OnSafeBrowsingMatchComputed( 63 void OnSafeBrowsingMatchComputed(
64 content::NavigationHandle* navigation_handle, 64 content::NavigationHandle* navigation_handle,
65 safe_browsing::SBThreatType threat_type, 65 safe_browsing::SBThreatType threat_type,
66 safe_browsing::ThreatPatternType threat_type_metadata); 66 safe_browsing::ThreatPatternType threat_type_metadata);
67 67
68 // Reloads the page and inserts the host of its URL to the whitelist.
69 void OnReloadRequested();
70
71 // Returns the |ActivationDecision| for the current main frame 68 // Returns the |ActivationDecision| for the current main frame
72 // document. 69 // document.
73 ActivationDecision GetActivationDecisionForLastCommittedPageLoad() const { 70 ActivationDecision GetActivationDecisionForLastCommittedPageLoad() const {
74 return activation_decision_; 71 return activation_decision_;
75 } 72 }
76 73
77 // ContentSubresourceFilterThrottleManager::Delegate: 74 // ContentSubresourceFilterThrottleManager::Delegate:
78 void OnFirstSubresourceLoadDisallowed() override; 75 void OnFirstSubresourceLoadDisallowed() override;
79 76
80 ContentSubresourceFilterThrottleManager* throttle_manager() { 77 ContentSubresourceFilterThrottleManager* throttle_manager() {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // reaches the WillProcessResponse stage (or successfully finishes if 129 // reaches the WillProcessResponse stage (or successfully finishes if
133 // throttles are not invoked). 130 // throttles are not invoked).
134 Configuration::ActivationOptions activation_options_; 131 Configuration::ActivationOptions activation_options_;
135 132
136 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory); 133 DISALLOW_COPY_AND_ASSIGN(ContentSubresourceFilterDriverFactory);
137 }; 134 };
138 135
139 } // namespace subresource_filter 136 } // namespace subresource_filter
140 137
141 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FIL TER_DRIVER_FACTORY_H_ 138 #endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_SUBRESOURCE_FIL TER_DRIVER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698