#include "chrome/browser/devtools/protocol/target_handler.h"
#include "chrome/browser/devtools/chrome_devtools_manager_delegate.h"
#include "chrome/browser/devtools/devtools_browser_context_manager.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_navigator.h"
#include "chrome/common/webui_url_constants.h"
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/url_constants.h"
#include "content/public/common/url_utils.h"
namespace {
NavigateParams CreateNavigateParams(Profile* profile,
const GURL& url,
ui::PageTransition transition,
bool new_window,
bool background,
Browser* browser) { … }
}
TargetHandler::TargetHandler(protocol::UberDispatcher* dispatcher,
bool is_trusted)
: … { … }
TargetHandler::~TargetHandler() { … }
protocol::Response TargetHandler::SetRemoteLocations(
std::unique_ptr<protocol::Array<protocol::Target::RemoteLocation>>
locations) { … }
protocol::Response TargetHandler::CreateTarget(
const std::string& url,
protocol::Maybe<int> width,
protocol::Maybe<int> height,
protocol::Maybe<std::string> browser_context_id,
protocol::Maybe<bool> enable_begin_frame_control,
protocol::Maybe<bool> new_window,
protocol::Maybe<bool> background,
protocol::Maybe<bool> for_tab,
std::string* out_target_id) { … }