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

Side by Side Diff: chrome/browser/loader/data_reduction_proxy_resource_throttle_android.h

Issue 2540563002: Move SafeBrowsingUIManager::UnsafeResource to security_interstitials namespace (Closed)
Patch Set: rebase update Created 4 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CHROME_BROWSER_LOADER_DATA_REDUCTION_PROXY_RESOURCE_THROTTLE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_LOADER_DATA_REDUCTION_PROXY_RESOURCE_THROTTLE_ANDROID_H_
6 #define CHROME_BROWSER_LOADER_DATA_REDUCTION_PROXY_RESOURCE_THROTTLE_ANDROID_H_ 6 #define CHROME_BROWSER_LOADER_DATA_REDUCTION_PROXY_RESOURCE_THROTTLE_ANDROID_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void OnBlockingPageComplete(bool proceed); 79 void OnBlockingPageComplete(bool proceed);
80 80
81 // Returns the threat type. 81 // Returns the threat type.
82 safe_browsing::SBThreatType CheckUrl(); 82 safe_browsing::SBThreatType CheckUrl();
83 83
84 // Starts displaying the safe browsing interstitial page if it is not 84 // Starts displaying the safe browsing interstitial page if it is not
85 // prerendering. Called on the UI thread. 85 // prerendering. Called on the UI thread.
86 static void StartDisplayingBlockingPage( 86 static void StartDisplayingBlockingPage(
87 const base::WeakPtr<DataReductionProxyResourceThrottle>& throttle, 87 const base::WeakPtr<DataReductionProxyResourceThrottle>& throttle,
88 scoped_refptr<safe_browsing::SafeBrowsingUIManager> ui_manager, 88 scoped_refptr<safe_browsing::SafeBrowsingUIManager> ui_manager,
89 const safe_browsing::SafeBrowsingUIManager::UnsafeResource& resource); 89 const security_interstitials::UnsafeResource& resource);
90 90
91 // Resumes the request, by continuing the deferred action (either starting the 91 // Resumes the request, by continuing the deferred action (either starting the
92 // request, or following a redirect). 92 // request, or following a redirect).
93 void ResumeRequest(); 93 void ResumeRequest();
94 94
95 State state_; 95 State state_;
96 96
97 // The redirect chain for this resource. 97 // The redirect chain for this resource.
98 std::vector<GURL> redirect_urls_; 98 std::vector<GURL> redirect_urls_;
99 99
100 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_; 100 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_;
101 net::URLRequest* request_; 101 net::URLRequest* request_;
102 const bool is_subresource_; 102 const bool is_subresource_;
103 const bool is_subframe_; 103 const bool is_subframe_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyResourceThrottle); 105 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyResourceThrottle);
106 }; 106 };
107 107
108 #endif // CHROME_BROWSER_LOADER_DATA_REDUCTION_PROXY_RESOURCE_THROTTLE_ANDROID_ H_ 108 #endif // CHROME_BROWSER_LOADER_DATA_REDUCTION_PROXY_RESOURCE_THROTTLE_ANDROID_ H_
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/loader/data_reduction_proxy_resource_throttle_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698