| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/debugger/devtools_remote_message.h" | 5 #include "content/browser/debugger/devtools_remote_message.h" |
| 6 | 6 |
| 7 #include "base/string_number_conversions.h" | 7 #include "base/string_number_conversions.h" |
| 8 | 8 |
| 9 const char DevToolsRemoteMessageHeaders::kContentLength[] = "Content-Length"; | 9 const char DevToolsRemoteMessageHeaders::kContentLength[] = "Content-Length"; |
| 10 const char DevToolsRemoteMessageHeaders::kTool[] = "Tool"; | 10 const char DevToolsRemoteMessageHeaders::kTool[] = "Tool"; |
| 11 const char DevToolsRemoteMessageHeaders::kDestination[] = "Destination"; | 11 const char DevToolsRemoteMessageHeaders::kDestination[] = "Destination"; |
| 12 | 12 |
| 13 const char DevToolsRemoteMessage::kEmptyValue[] = ""; | 13 const char DevToolsRemoteMessage::kEmptyValue[] = ""; |
| 14 | 14 |
| 15 DevToolsRemoteMessageBuilder& DevToolsRemoteMessageBuilder::instance() { | 15 DevToolsRemoteMessageBuilder& DevToolsRemoteMessageBuilder::instance() { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 const std::string& tool, | 56 const std::string& tool, |
| 57 const std::string& destination, | 57 const std::string& destination, |
| 58 const std::string& content) { | 58 const std::string& content) { |
| 59 DevToolsRemoteMessage::HeaderMap headers; | 59 DevToolsRemoteMessage::HeaderMap headers; |
| 60 headers[DevToolsRemoteMessageHeaders::kContentLength] = | 60 headers[DevToolsRemoteMessageHeaders::kContentLength] = |
| 61 base::IntToString(content.size()); | 61 base::IntToString(content.size()); |
| 62 headers[DevToolsRemoteMessageHeaders::kTool] = tool; | 62 headers[DevToolsRemoteMessageHeaders::kTool] = tool; |
| 63 headers[DevToolsRemoteMessageHeaders::kDestination] = destination; | 63 headers[DevToolsRemoteMessageHeaders::kDestination] = destination; |
| 64 return new DevToolsRemoteMessage(headers, content); | 64 return new DevToolsRemoteMessage(headers, content); |
| 65 } | 65 } |
| OLD | NEW |