Home | History | Annotate | Download | only in devtools

Lines Matching defs:Response

65 scoped_refptr<DevToolsProtocol::Response>
67 return new DevToolsProtocol::Response(id_, result);
70 scoped_refptr<DevToolsProtocol::Response>
72 return new DevToolsProtocol::Response(id_, kErrorInternalError, message);
75 scoped_refptr<DevToolsProtocol::Response>
79 return new DevToolsProtocol::Response(id_, kErrorInvalidParams, message);
82 scoped_refptr<DevToolsProtocol::Response>
84 return new Response(id_, kErrorNoSuchMethod, "No such method");
87 scoped_refptr<DevToolsProtocol::Response>
89 return new Response(id_, kErrorServerError, message);
92 scoped_refptr<DevToolsProtocol::Response>
94 scoped_refptr<DevToolsProtocol::Response> promise =
95 new DevToolsProtocol::Response(0, NULL);
107 DevToolsProtocol::Response::~Response() {
110 std::string DevToolsProtocol::Response::Serialize() {
111 base::DictionaryValue response;
114 response.SetInteger(kIdParam, id_);
118 response.Set(kErrorParam, error_object);
123 response.Set(kResultParam, result_->DeepCopy());
127 base::JSONWriter::Write(&response, &json_response);
131 DevToolsProtocol::Response::Response(int id, base::DictionaryValue* result)
138 DevToolsProtocol::Response::Response(int id,
169 scoped_refptr<DevToolsProtocol::Response>
200 scoped_refptr<DevToolsProtocol::Response> response) {
201 SendRawMessage(response->Serialize());
240 scoped_refptr<Response> response =
241 new Response(kNoId, kErrorInvalidRequest, "No such method");
242 *error_response = response->Serialize();
261 scoped_refptr<DevToolsProtocol::Response>
274 return new Response(id, error_code, error_message);
279 return new Response(id, result ? result->DeepCopy() : NULL);
318 scoped_refptr<Response> response =
319 new Response(0, kErrorParseError, error_message);
321 *error_response = response->Serialize();