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

Side by Side Diff: content/browser/frame_host/navigation_handle_impl.h

Issue 2272123002: [HBD] Intercept navigation to Flash download page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test 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
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_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
7 7
8 #include "content/public/browser/navigation_handle.h" 8 #include "content/public/browser/navigation_handle.h"
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 bool has_user_gesture, 110 bool has_user_gesture,
111 ui::PageTransition transition, 111 ui::PageTransition transition,
112 bool is_external_protocol) override; 112 bool is_external_protocol) override;
113 NavigationThrottle::ThrottleCheckResult CallWillRedirectRequestForTesting( 113 NavigationThrottle::ThrottleCheckResult CallWillRedirectRequestForTesting(
114 const GURL& new_url, 114 const GURL& new_url,
115 bool new_method_is_post, 115 bool new_method_is_post,
116 const GURL& new_referrer_url, 116 const GURL& new_referrer_url,
117 bool new_is_external_protocol) override; 117 bool new_is_external_protocol) override;
118 NavigationThrottle::ThrottleCheckResult CallWillProcessResponseForTesting( 118 NavigationThrottle::ThrottleCheckResult CallWillProcessResponseForTesting(
119 RenderFrameHost* render_frame_host) override; 119 RenderFrameHost* render_frame_host) override;
120 void SetHasUserGestureForTesting(bool has_user_gesture) override;
120 121
121 NavigationData* GetNavigationData() override; 122 NavigationData* GetNavigationData() override;
122 123
123 NavigatorDelegate* GetDelegate() const; 124 NavigatorDelegate* GetDelegate() const;
124 125
125 RequestContextType GetRequestContextType() const; 126 RequestContextType GetRequestContextType() const;
126 127
127 // Get the unique id from the NavigationEntry associated with this 128 // Get the unique id from the NavigationEntry associated with this
128 // NavigationHandle. Note that a synchronous, renderer-initiated navigation 129 // NavigationHandle. Note that a synchronous, renderer-initiated navigation
129 // will not have a NavigationEntry associated with it, and this will return 0. 130 // will not have a NavigationEntry associated with it, and this will return 0.
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 319
319 // Embedder data tied to this navigation. 320 // Embedder data tied to this navigation.
320 std::unique_ptr<NavigationData> navigation_data_; 321 std::unique_ptr<NavigationData> navigation_data_;
321 322
322 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); 323 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
323 }; 324 };
324 325
325 } // namespace content 326 } // namespace content
326 327
327 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 328 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698