Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: content/browser/debugger/devtools_remote_message.cc

Issue 7274031: Wholesale move of debugger sources to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add OWNERS and DEPS. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698