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

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

Issue 2574953002: Fix Android unit_tests failures with PlzNavigate. (Closed)
Patch Set: fix last test and cleanup Created 4 years 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 2c96e127ee42c6309e963a60fd56d41e6afa578e..4dca8882a7390b1b3eda190bc14b10b3b42409e0 100644
--- a/content/browser/frame_host/navigation_request.h
+++ b/content/browser/frame_host/navigation_request.h
@@ -7,6 +7,7 @@
#include <memory>
+#include "base/callback_forward.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "content/browser/frame_host/navigation_entry_impl.h"
@@ -157,6 +158,11 @@ 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;
+ }
+
private:
NavigationRequest(FrameTreeNode* frame_tree_node,
const CommonNavigationParams& common_params,
@@ -230,6 +236,8 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
scoped_refptr<ResourceResponse> response_;
std::unique_ptr<StreamHandle> body_;
+ base::Closure on_start_checks_complete_closure_;
+
DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
};

Powered by Google App Engine
This is Rietveld 408576698