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

Unified Diff: content/browser/frame_host/navigation_request.h

Issue 2698393002: Allow asynchronous deferral in NavigationSimulator (Closed)
Patch Set: Just return the throttle check on Start/Redirect/COmmit Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/navigation_request.h
diff --git a/content/browser/frame_host/navigation_request.h b/content/browser/frame_host/navigation_request.h
index 24980b97da4696d2062a99ef41757bc9237454ce..32512b12640af58f8b610457c1082b781c355909 100644
--- a/content/browser/frame_host/navigation_request.h
+++ b/content/browser/frame_host/navigation_request.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "content/browser/frame_host/navigation_entry_impl.h"
+#include "content/browser/frame_host/navigation_handle_impl.h"
#include "content/browser/loader/navigation_url_loader_delegate.h"
#include "content/common/content_export.h"
#include "content/common/frame_message_enums.h"
@@ -161,9 +162,9 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
void TransferNavigationHandleOwnership(
RenderFrameHostImpl* render_frame_host);
- void set_on_start_checks_complete_closure_for_testing(
- const base::Closure& closure) {
- on_start_checks_complete_closure_ = closure;
+ void set_on_checks_complete_callback_for_testing(
+ const NavigationHandleImpl::ThrottleChecksFinishedCallback& callback) {
+ on_checks_complete_callback_ = callback;
}
private:
@@ -253,7 +254,8 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
scoped_refptr<ResourceResponse> response_;
std::unique_ptr<StreamHandle> body_;
- base::Closure on_start_checks_complete_closure_;
+ NavigationHandleImpl::ThrottleChecksFinishedCallback
+ on_checks_complete_callback_;
DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
};

Powered by Google App Engine
This is Rietveld 408576698