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

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

Issue 2132673002: Adding Navigation Throttles to DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove print Created 4 years, 5 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 NavigationThrottle::ThrottleCheckResult CheckWillRedirectRequest(); 254 NavigationThrottle::ThrottleCheckResult CheckWillRedirectRequest();
255 NavigationThrottle::ThrottleCheckResult CheckWillProcessResponse(); 255 NavigationThrottle::ThrottleCheckResult CheckWillProcessResponse();
256 256
257 // Helper function to run and reset the |complete_callback_|. This marks the 257 // Helper function to run and reset the |complete_callback_|. This marks the
258 // end of a round of NavigationThrottleChecks. 258 // end of a round of NavigationThrottleChecks.
259 void RunCompleteCallback(NavigationThrottle::ThrottleCheckResult result); 259 void RunCompleteCallback(NavigationThrottle::ThrottleCheckResult result);
260 260
261 // Used in tests. 261 // Used in tests.
262 State state() const { return state_; } 262 State state() const { return state_; }
263 263
264 // Populates |throttles_| with the throttles for this navigation.
265 void RegisterNavigationThrottles();
266
264 // See NavigationHandle for a description of those member variables. 267 // See NavigationHandle for a description of those member variables.
265 GURL url_; 268 GURL url_;
266 Referrer sanitized_referrer_; 269 Referrer sanitized_referrer_;
267 bool has_user_gesture_; 270 bool has_user_gesture_;
268 ui::PageTransition transition_; 271 ui::PageTransition transition_;
269 bool is_external_protocol_; 272 bool is_external_protocol_;
270 net::Error net_error_code_; 273 net::Error net_error_code_;
271 RenderFrameHostImpl* render_frame_host_; 274 RenderFrameHostImpl* render_frame_host_;
272 const bool is_renderer_initiated_; 275 const bool is_renderer_initiated_;
273 bool is_same_page_; 276 bool is_same_page_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 314
312 // Embedder data tied to this navigation. 315 // Embedder data tied to this navigation.
313 std::unique_ptr<NavigationData> navigation_data_; 316 std::unique_ptr<NavigationData> navigation_data_;
314 317
315 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); 318 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
316 }; 319 };
317 320
318 } // namespace content 321 } // namespace content
319 322
320 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 323 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/render_frame_devtools_agent_host.cc ('k') | content/browser/frame_host/navigation_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698