#include "chrome/browser/extensions/extension_view_host_factory.h"
#include <string>
#include "chrome/browser/extensions/extension_side_panel_view_host.h"
#include "chrome/browser/extensions/extension_view_host.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_util.h"
#include "extensions/browser/process_manager.h"
#include "extensions/common/extension_features.h"
#include "extensions/common/manifest_handlers/incognito_info.h"
#include "extensions/common/mojom/view_type.mojom.h"
namespace extensions {
namespace {
std::unique_ptr<ExtensionViewHost> CreateViewHostForExtension(
const Extension* extension,
const GURL& url,
Profile* profile,
mojom::ViewType view_type,
Browser* browser,
content::WebContents* web_contents) { … }
std::unique_ptr<ExtensionViewHost> CreateViewHostForIncognito(
const Extension* extension,
const GURL& url,
Profile* profile,
Browser* browser,
content::WebContents* web_contents,
mojom::ViewType view_type) { … }
const Extension* GetExtensionForUrl(Profile* profile, const GURL& url) { … }
std::unique_ptr<ExtensionViewHost> CreateViewHost(
const GURL& url,
Profile* profile,
Browser* browser,
content::WebContents* web_contents,
extensions::mojom::ViewType view_type) { … }
}
std::unique_ptr<ExtensionViewHost> ExtensionViewHostFactory::CreatePopupHost(
const GURL& url,
Browser* browser) { … }
std::unique_ptr<ExtensionViewHost>
ExtensionViewHostFactory::CreateSidePanelHost(
const GURL& url,
Browser* browser,
content::WebContents* web_contents) { … }
}