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

Side by Side Diff: content/public/browser/navigation_handle.h

Issue 2272123002: [HBD] Intercept navigation to Flash download page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: EXPECT_EQ to ASSERT_EQ for WillStartRequest() checks Created 4 years, 3 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
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 virtual NavigationThrottle::ThrottleCheckResult 199 virtual NavigationThrottle::ThrottleCheckResult
200 CallWillRedirectRequestForTesting(const GURL& new_url, 200 CallWillRedirectRequestForTesting(const GURL& new_url,
201 bool new_method_is_post, 201 bool new_method_is_post,
202 const GURL& new_referrer_url, 202 const GURL& new_referrer_url,
203 bool new_is_external_protocol) = 0; 203 bool new_is_external_protocol) = 0;
204 204
205 // Simulates the reception of the network response. 205 // Simulates the reception of the network response.
206 virtual NavigationThrottle::ThrottleCheckResult 206 virtual NavigationThrottle::ThrottleCheckResult
207 CallWillProcessResponseForTesting(RenderFrameHost* render_frame_host) = 0; 207 CallWillProcessResponseForTesting(RenderFrameHost* render_frame_host) = 0;
208 208
209 // Set |has_user_gesture_|.
210 virtual void SetHasUserGestureForTesting(bool has_user_gesture) = 0;
clamy 2016/09/01 18:26:42 This doesn't seem necessary. Just call CallWillSta
trizzofo 2016/09/01 21:02:45 Done. Thanks!
211
209 // The NavigationData that the embedder returned from 212 // The NavigationData that the embedder returned from
210 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will 213 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
211 // be a clone of the NavigationData. 214 // be a clone of the NavigationData.
212 virtual NavigationData* GetNavigationData() = 0; 215 virtual NavigationData* GetNavigationData() = 0;
213 }; 216 };
214 217
215 } // namespace content 218 } // namespace content
216 219
217 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 220 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698