#include "content/browser/navigation_or_document_handle.h"
#include <optional>
#include "content/browser/renderer_host/frame_tree_node.h"
#include "content/browser/renderer_host/navigation_request.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/frame_type.h"
#include "url/origin.h"
namespace content {
scoped_refptr<NavigationOrDocumentHandle>
NavigationOrDocumentHandle::CreateForDocument(
GlobalRenderFrameHostId render_frame_host_id) { … }
scoped_refptr<NavigationOrDocumentHandle>
NavigationOrDocumentHandle::CreateForNavigation(
NavigationRequest& navigation_request) { … }
NavigationOrDocumentHandle::NavigationOrDocumentHandle(
GlobalRenderFrameHostId render_frame_host_id) { … }
NavigationOrDocumentHandle::NavigationOrDocumentHandle(
NavigationRequest& navigation_request)
: … { … }
NavigationOrDocumentHandle::~NavigationOrDocumentHandle() = default;
NavigationRequest* NavigationOrDocumentHandle::GetNavigationRequest() const { … }
RenderFrameHost* NavigationOrDocumentHandle::GetDocument() const { … }
WebContents* NavigationOrDocumentHandle::GetWebContents() const { … }
FrameTreeNode* NavigationOrDocumentHandle::GetFrameTreeNode() const { … }
std::optional<url::Origin> NavigationOrDocumentHandle::GetTopmostFrameOrigin()
const { … }
bool NavigationOrDocumentHandle::IsInPrimaryMainFrame() const { … }
void NavigationOrDocumentHandle::OnNavigationCommitted(
NavigationRequest& navigation_request) { … }
}