Lines Matching defs:Response
59 scoped_ptr<DevToolsProtocol::Response>
61 return scoped_ptr<DevToolsProtocol::Response>(
62 new DevToolsProtocol::Response(id_, result));
65 scoped_ptr<DevToolsProtocol::Response>
69 return scoped_ptr<DevToolsProtocol::Response>(
70 new DevToolsProtocol::Response(id_, kErrorInvalidParams, message));
81 DevToolsProtocol::Response::~Response() {
84 DevToolsProtocol::Response::Response(int id,
92 DevToolsProtocol::Response::Response(int id, base::DictionaryValue* result)
98 base::DictionaryValue* DevToolsProtocol::Response::Serialize() {
99 base::DictionaryValue* response = new base::DictionaryValue();
101 response->SetInteger(kIdParam, id_);
105 response->Set(kErrorParam, error_object);
110 response->Set(kResultParam, result_->DeepCopy());
113 return response;
154 DevToolsProtocol::Response* DevToolsProtocol::ParseResponse(
171 return new Response(id, error_code, std::string());