Index: content/browser/frame_host/navigation_handle_impl.h |
diff --git a/content/browser/frame_host/navigation_handle_impl.h b/content/browser/frame_host/navigation_handle_impl.h |
index e9cb20983e0c94bfd343b693d330b7b89ecdf3ad..1311dbdf742549fc58109001060d2e44aa24b2c0 100644 |
--- a/content/browser/frame_host/navigation_handle_impl.h |
+++ b/content/browser/frame_host/navigation_handle_impl.h |
@@ -346,6 +346,11 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle { |
response_headers_ = response_headers; |
} |
+ void set_complete_callback_for_testing( |
+ const ThrottleChecksFinishedCallback& callback) { |
+ complete_callback_for_testing_ = callback; |
+ } |
+ |
private: |
friend class NavigationHandleImplTest; |
@@ -447,9 +452,13 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle { |
// The mixed content context type for potential mixed content checks. |
blink::WebMixedContentContextType mixed_content_context_type_; |
- // This callback will be run when all throttle checks have been performed. |
+ // This callback will be run when all throttle checks have been performed. Be |
+ // careful about relying on it as it may be going away. |
ThrottleChecksFinishedCallback complete_callback_; |
+ // This callback will be run when all throttle checks have been performed. |
clamy
2017/03/09 13:18:13
Also mention that this is only used in unit tests,
|
+ ThrottleChecksFinishedCallback complete_callback_for_testing_; |
+ |
// PlzNavigate |
// Manages the lifetime of a pre-created ServiceWorkerProviderHost until a |
// corresponding ServiceWorkerNetworkProvider is created in the renderer. |