#include "content/browser/browser_plugin/browser_plugin_guest.h"
#include <stddef.h>
#include <utility>
#include "base/memory/ptr_util.h"
#include "base/metrics/user_metrics.h"
#include "build/build_config.h"
#include "content/browser/renderer_host/navigation_request.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_view_base.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/web_contents_observer.h"
#include "third_party/blink/public/common/renderer_preferences/renderer_preferences.h"
namespace content {
BrowserPluginGuest::BrowserPluginGuest(WebContentsImpl* web_contents,
BrowserPluginGuestDelegate* delegate)
: … { … }
void BrowserPluginGuest::Init() { … }
std::unique_ptr<WebContentsImpl> BrowserPluginGuest::CreateNewGuestWindow(
const WebContents::CreateParams& params) { … }
void BrowserPluginGuest::InitInternal(WebContentsImpl* owner_web_contents) { … }
BrowserPluginGuest::~BrowserPluginGuest() = default;
void BrowserPluginGuest::CreateInWebContents(
WebContentsImpl* web_contents,
BrowserPluginGuestDelegate* delegate) { … }
WebContentsImpl* BrowserPluginGuest::GetWebContents() const { … }
RenderFrameHostImpl* BrowserPluginGuest::GetProspectiveOuterDocument() { … }
void BrowserPluginGuest::DidStartNavigation(
NavigationHandle* navigation_handle) { … }
void BrowserPluginGuest::DidFinishNavigation(
NavigationHandle* navigation_handle) { … }
void BrowserPluginGuest::PrimaryMainFrameRenderProcessGone(
base::TerminationStatus status) { … }
}