#include "chrome/browser/extensions/api/developer_private/inspectable_views_finder.h"
#include <set>
#include "chrome/browser/devtools/chrome_devtools_manager_delegate.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/developer_private.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/app_window/app_window.h"
#include "extensions/browser/app_window/app_window_registry.h"
#include "extensions/browser/extension_host.h"
#include "extensions/browser/extension_util.h"
#include "extensions/browser/process_manager.h"
#include "extensions/browser/view_type_utils.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handlers/background_info.h"
#include "extensions/common/manifest_handlers/incognito_info.h"
#include "extensions/common/mojom/view_type.mojom.h"
#include "url/gurl.h"
namespace extensions {
InspectableViewsFinder::InspectableViewsFinder(Profile* profile)
: … { … }
InspectableViewsFinder::~InspectableViewsFinder() { … }
api::developer_private::ViewType ConvertViewType(const mojom::ViewType type) { … }
InspectableViewsFinder::View InspectableViewsFinder::ConstructView(
const GURL& url,
int render_process_id,
int render_frame_id,
bool incognito,
bool is_iframe,
api::developer_private::ViewType type) { … }
InspectableViewsFinder::ViewList InspectableViewsFinder::GetViewsForExtension(
const Extension& extension,
bool is_enabled) { … }
void InspectableViewsFinder::GetViewsForExtensionForProfile(
const Extension& extension,
Profile* profile,
bool is_enabled,
bool is_incognito,
ViewList* result) { … }
void InspectableViewsFinder::GetViewsForExtensionProcess(
const Extension& extension,
ProcessManager* process_manager,
bool is_incognito,
ViewList* result) { … }
void InspectableViewsFinder::GetAppWindowViewsForExtension(
const Extension& extension,
ViewList* result) { … }
}