| Index: content/browser/devtools/protocol/browser_handler.cc
|
| diff --git a/content/browser/devtools/protocol/browser_handler.cc b/content/browser/devtools/protocol/browser_handler.cc
|
| index ac575f616ea2791c44ed11070dfbcea6cb68dd29..122e5d8df9d65c4b8891e299a53be40df981dc4a 100644
|
| --- a/content/browser/devtools/protocol/browser_handler.cc
|
| +++ b/content/browser/devtools/protocol/browser_handler.cc
|
| @@ -43,6 +43,39 @@ static std::string GetTypeString(DevToolsAgentHost* agent_host) {
|
| }
|
| }
|
|
|
| +Response BrowserHandler::NewContext(std::string* out_contextId) {
|
| + // For layering reasons this neends to be handled by
|
| + // DevToolsManagerDelegate::HandleCommand.
|
| + return Response::ServerError("Not supported");
|
| +}
|
| +
|
| +Response BrowserHandler::CloseContext(const std::string& contextId,
|
| + bool* out_success) {
|
| + // For layering reasons this neends to be handled by
|
| + // DevToolsManagerDelegate::HandleCommand.
|
| + return Response::ServerError("Not supported");
|
| +}
|
| +
|
| +Response BrowserHandler::NewPage(const std::string& in_initialUrl,
|
| + const int* in_width,
|
| + const int* in_height,
|
| + const std::string* in_context,
|
| + std::string* out_targetId) {
|
| + // For layering reasons this neends to be handled by
|
| + // DevToolsManagerDelegate::HandleCommand.
|
| + return Response::ServerError("Not supported");
|
| +}
|
| +
|
| +Response BrowserHandler::ClosePage(const std::string& targetId,
|
| + bool* out_success) {
|
| + scoped_refptr<DevToolsAgentHost> agent_host =
|
| + DevToolsAgentHost::GetForId(targetId);
|
| + if (!agent_host)
|
| + return Response::ServerError("No target with given id found");
|
| + *out_success = agent_host->Close();
|
| + return Response::OK();
|
| +}
|
| +
|
| Response BrowserHandler::GetTargets(TargetInfos* infos) {
|
| DevToolsAgentHost::List agents = DevToolsAgentHost::GetOrCreateAll();
|
| for (DevToolsAgentHost::List::iterator it = agents.begin();
|
|
|