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

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

Issue 2241673002: Make UnsafeResource hold a WebContents getter instead of RenderFrame ids (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android Created 4 years, 4 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 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_RENDERER_HOST_DATA_REDUCTION_PROXY_RESOURCE_THROTTLE_ANDR OID_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_DATA_REDUCTION_PROXY_RESOURCE_THROTTLE_ANDR OID_H_
6 #define CHROME_BROWSER_RENDERER_HOST_DATA_REDUCTION_PROXY_RESOURCE_THROTTLE_ANDR OID_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_DATA_REDUCTION_PROXY_RESOURCE_THROTTLE_ANDR OID_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 safe_browsing::SafeBrowsingUIManager::UnsafeResource& resource,
90 int child_id,
91 int render_frame_id);
90 92
91 // Resumes the request, by continuing the deferred action (either starting the 93 // Resumes the request, by continuing the deferred action (either starting the
92 // request, or following a redirect). 94 // request, or following a redirect).
93 void ResumeRequest(); 95 void ResumeRequest();
94 96
95 State state_; 97 State state_;
96 98
97 // The redirect chain for this resource. 99 // The redirect chain for this resource.
98 std::vector<GURL> redirect_urls_; 100 std::vector<GURL> redirect_urls_;
99 101
100 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_; 102 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_;
101 net::URLRequest* request_; 103 net::URLRequest* request_;
102 const bool is_subresource_; 104 const bool is_subresource_;
103 const bool is_subframe_; 105 const bool is_subframe_;
104 106
105 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyResourceThrottle); 107 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyResourceThrottle);
106 }; 108 };
107 109
108 #endif // CHROME_BROWSER_RENDERER_HOST_DATA_REDUCTION_PROXY_RESOURCE_THROTTLE_A NDROID_H_ 110 #endif // CHROME_BROWSER_RENDERER_HOST_DATA_REDUCTION_PROXY_RESOURCE_THROTTLE_A NDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698