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

Unified Diff: chrome/browser/debugger/devtools_remote_message.cc

Issue 8635005: DevTools: remove support for legacy remote debugger (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests compilation Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/debugger/devtools_remote_message.cc
diff --git a/chrome/browser/debugger/devtools_remote_message.cc b/chrome/browser/debugger/devtools_remote_message.cc
deleted file mode 100644
index 997cb43ab4d37d867d10e3865b7db179b4185628..0000000000000000000000000000000000000000
--- a/chrome/browser/debugger/devtools_remote_message.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/debugger/devtools_remote_message.h"
-
-#include "base/string_number_conversions.h"
-
-const char DevToolsRemoteMessageHeaders::kContentLength[] = "Content-Length";
-const char DevToolsRemoteMessageHeaders::kTool[] = "Tool";
-const char DevToolsRemoteMessageHeaders::kDestination[] = "Destination";
-
-const char DevToolsRemoteMessage::kEmptyValue[] = "";
-
-DevToolsRemoteMessageBuilder& DevToolsRemoteMessageBuilder::instance() {
- CR_DEFINE_STATIC_LOCAL(DevToolsRemoteMessageBuilder, instance, ());
- return instance;
-}
-
-DevToolsRemoteMessage::DevToolsRemoteMessage() {}
-
-DevToolsRemoteMessage::DevToolsRemoteMessage(const HeaderMap& headers,
- const std::string& content)
- : header_map_(headers),
- content_(content) {
-}
-
-DevToolsRemoteMessage::~DevToolsRemoteMessage() {}
-
-const std::string DevToolsRemoteMessage::GetHeader(
- const std::string& header_name,
- const std::string& default_value) const {
- HeaderMap::const_iterator it = header_map_.find(header_name);
- if (it == header_map_.end()) {
- return default_value;
- }
- return it->second;
-}
-
-const std::string DevToolsRemoteMessage::GetHeaderWithEmptyDefault(
- const std::string& header_name) const {
- return GetHeader(header_name, DevToolsRemoteMessage::kEmptyValue);
-}
-
-const std::string DevToolsRemoteMessage::ToString() const {
- std::string result;
- for (HeaderMap::const_iterator it = header_map_.begin(),
- end = header_map_.end(); it != end; ++it) {
- result.append(it->first).append(":").append(it->second).append("\r\n");
- }
- result.append("\r\n").append(content_);
- return result;
-}
-
-DevToolsRemoteMessage* DevToolsRemoteMessageBuilder::Create(
- const std::string& tool,
- const std::string& destination,
- const std::string& content) {
- DevToolsRemoteMessage::HeaderMap headers;
- headers[DevToolsRemoteMessageHeaders::kContentLength] =
- base::IntToString(content.size());
- headers[DevToolsRemoteMessageHeaders::kTool] = tool;
- headers[DevToolsRemoteMessageHeaders::kDestination] = destination;
- return new DevToolsRemoteMessage(headers, content);
-}
« no previous file with comments | « chrome/browser/debugger/devtools_remote_message.h ('k') | chrome/browser/debugger/devtools_remote_message_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698