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

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

Issue 2266653002: Previews infobar tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newLoFiInfoBarAddUMA
Patch Set: 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 "base/memory/ref_counted.h"
10 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
11 #include "content/public/browser/navigation_throttle.h" 12 #include "content/public/browser/navigation_throttle.h"
12 #include "content/public/common/referrer.h" 13 #include "content/public/common/referrer.h"
13 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
14 #include "ui/base/page_transition_types.h" 15 #include "ui/base/page_transition_types.h"
15 16
16 class GURL; 17 class GURL;
17 18
18 namespace net { 19 namespace net {
19 class HttpResponseHeaders; 20 class HttpResponseHeaders;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 198
198 // Simulates the network request being redirected. 199 // Simulates the network request being redirected.
199 virtual NavigationThrottle::ThrottleCheckResult 200 virtual NavigationThrottle::ThrottleCheckResult
200 CallWillRedirectRequestForTesting(const GURL& new_url, 201 CallWillRedirectRequestForTesting(const GURL& new_url,
201 bool new_method_is_post, 202 bool new_method_is_post,
202 const GURL& new_referrer_url, 203 const GURL& new_referrer_url,
203 bool new_is_external_protocol) = 0; 204 bool new_is_external_protocol) = 0;
204 205
205 // Simulates the reception of the network response. 206 // Simulates the reception of the network response.
206 virtual NavigationThrottle::ThrottleCheckResult 207 virtual NavigationThrottle::ThrottleCheckResult
207 CallWillProcessResponseForTesting(RenderFrameHost* render_frame_host) = 0; 208 CallWillProcessResponseForTesting(
209 RenderFrameHost* render_frame_host,
210 scoped_refptr<net::HttpResponseHeaders> response_headers) = 0;
211
212 // Simulates the navigation being committed.
213 virtual void CallDidCommitNavigationForTesting(
214 const GURL& url,
215 ui::PageTransition transition,
216 bool same_page,
clamy 2016/09/08 13:11:07 I only see one instance of CallDidCommitNavigation
megjablon 2016/09/08 18:15:25 Removed.
217 RenderFrameHost* render_frame_host) = 0;
clamy 2016/09/08 13:11:07 It would seem less error prone to not have a RFH t
megjablon 2016/09/08 18:15:25 Good call. Done.
208 218
209 // The NavigationData that the embedder returned from 219 // The NavigationData that the embedder returned from
210 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will 220 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
211 // be a clone of the NavigationData. 221 // be a clone of the NavigationData.
212 virtual NavigationData* GetNavigationData() = 0; 222 virtual NavigationData* GetNavigationData() = 0;
213 }; 223 };
214 224
215 } // namespace content 225 } // namespace content
216 226
217 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 227 #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