OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/browser/devtools/devtools_protocol.h" | 5 #include "content/browser/devtools/devtools_protocol.h" |
6 | 6 |
7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
8 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
9 #include "base/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 const char kIdParam[] = "id"; | 15 const char kIdParam[] = "id"; |
16 const char kMethodParam[] = "method"; | 16 const char kMethodParam[] = "method"; |
17 const char kParamsParam[] = "params"; | 17 const char kParamsParam[] = "params"; |
18 const char kResultParam[] = "result"; | 18 const char kResultParam[] = "result"; |
19 const char kErrorParam[] = "error"; | 19 const char kErrorParam[] = "error"; |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 Response response(0, kErrorParseError, error_message); | 257 Response response(0, kErrorParseError, error_message); |
258 if (error_response) | 258 if (error_response) |
259 *error_response = response.Serialize(); | 259 *error_response = response.Serialize(); |
260 return NULL; | 260 return NULL; |
261 } | 261 } |
262 | 262 |
263 return static_cast<DictionaryValue*>(message.release()); | 263 return static_cast<DictionaryValue*>(message.release()); |
264 } | 264 } |
265 | 265 |
266 } // namespace content | 266 } // namespace content |
OLD | NEW |