// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_TEST_DID_COMMIT_NAVIGATION_INTERCEPTOR_H_ #define CONTENT_TEST_DID_COMMIT_NAVIGATION_INTERCEPTOR_H_ #include <map> #include <memory> #include "base/functional/callback.h" #include "base/run_loop.h" #include "content/common/frame.mojom.h" #include "content/public/browser/web_contents_observer.h" #include "url/gurl.h" namespace content { class RenderFrameHost; class NavigationRequest; // Allows intercepting calls to RenderFrameHostImpl::DidCommitNavigation just // before they are processed by the implementation. This enables unit/browser // tests to scrutinize/alter the parameters, or simulate race conditions by // triggering other calls just before processing DidCommitProvisionalLoad. class DidCommitNavigationInterceptor : public WebContentsObserver { … }; } // namespace content #endif // CONTENT_TEST_DID_COMMIT_NAVIGATION_INTERCEPTOR_H_