#include "headless/lib/browser/protocol/target_handler.h"
#include "build/build_config.h"
#include "headless/lib/browser/headless_browser_context_impl.h"
#include "headless/lib/browser/headless_browser_impl.h"
#include "headless/lib/browser/headless_web_contents_impl.h"
#include "ui/gfx/geometry/size.h"
namespace headless {
namespace protocol {
TargetHandler::TargetHandler(HeadlessBrowserImpl* browser)
: … { … }
TargetHandler::~TargetHandler() = default;
void TargetHandler::Wire(UberDispatcher* dispatcher) { … }
Response TargetHandler::Disable() { … }
Response TargetHandler::CreateTarget(const std::string& url,
Maybe<int> width,
Maybe<int> height,
Maybe<std::string> context_id,
Maybe<bool> enable_begin_frame_control,
Maybe<bool> new_window,
Maybe<bool> background,
Maybe<bool> for_tab,
std::string* out_target_id) { … }
Response TargetHandler::CloseTarget(const std::string& target_id,
bool* out_success) { … }
}
}