| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/renderer/devtools/devtools_agent.h" | 5 #include "content/renderer/devtools/devtools_agent.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 error_value->SetString("message", error.message); | 323 error_value->SetString("message", error.message); |
| 324 error_value->SetBoolean("critical", error.critical); | 324 error_value->SetBoolean("critical", error.critical); |
| 325 error_value->SetInteger("line", error.line); | 325 error_value->SetInteger("line", error.line); |
| 326 error_value->SetInteger("column", error.column); | 326 error_value->SetInteger("column", error.column); |
| 327 if (error.critical) | 327 if (error.critical) |
| 328 failed = true; | 328 failed = true; |
| 329 errors->Append(std::move(error_value)); | 329 errors->Append(std::move(error_value)); |
| 330 } | 330 } |
| 331 | 331 |
| 332 WebString url = frame_->GetWebFrame()->document().manifestURL().string(); | 332 WebString url = frame_->GetWebFrame()->document().manifestURL().string(); |
| 333 result->SetString("url", url); | 333 result->SetString("url", url.utf16()); |
| 334 if (!failed) | 334 if (!failed) |
| 335 result->SetString("data", debug_info.raw_data); | 335 result->SetString("data", debug_info.raw_data); |
| 336 result->Set("errors", errors.release()); | 336 result->Set("errors", errors.release()); |
| 337 response->Set("result", result.release()); | 337 response->Set("result", result.release()); |
| 338 | 338 |
| 339 std::string json_message; | 339 std::string json_message; |
| 340 base::JSONWriter::Write(*response, &json_message); | 340 base::JSONWriter::Write(*response, &json_message); |
| 341 SendChunkedProtocolMessage(this, routing_id(), session_id, call_id, | 341 SendChunkedProtocolMessage(this, routing_id(), session_id, call_id, |
| 342 json_message, std::string()); | 342 json_message, std::string()); |
| 343 } | 343 } |
| 344 | 344 |
| 345 } // namespace content | 345 } // namespace content |
| OLD | NEW |