#include "extensions/browser/app_window/app_window_contents.h"
#include <memory>
#include <string>
#include <utility>
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/site_instance.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/app_window/native_app_window.h"
#include "extensions/browser/bad_message.h"
#include "extensions/browser/extension_web_contents_observer.h"
#include "third_party/blink/public/common/renderer_preferences/renderer_preferences.h"
namespace extensions {
AppWindowContentsImpl::AppWindowContentsImpl(AppWindow* host) : … { … }
AppWindowContentsImpl::~AppWindowContentsImpl() = default;
void AppWindowContentsImpl::Initialize(content::BrowserContext* context,
content::RenderFrameHost* creator_frame,
const GURL& url) { … }
void AppWindowContentsImpl::LoadContents(int32_t creator_process_id) { … }
void AppWindowContentsImpl::NativeWindowChanged(
NativeAppWindow* native_app_window) { … }
void AppWindowContentsImpl::NativeWindowClosed(bool send_onclosed) { … }
content::WebContents* AppWindowContentsImpl::GetWebContents() const { … }
WindowController* AppWindowContentsImpl::GetWindowController() const { … }
void AppWindowContentsImpl::DidFinishNavigation(
content::NavigationHandle* handle) { … }
}