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

Unified Diff: content/public/common/message_port_types.cc

Issue 1974613002: Remove code that was only used by navigator.connect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/message_port_types.cc
diff --git a/content/public/common/message_port_types.cc b/content/public/common/message_port_types.cc
deleted file mode 100644
index faf033df7a368b56b47d150d825fce776d50157f..0000000000000000000000000000000000000000
--- a/content/public/common/message_port_types.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2015 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 "content/public/common/message_port_types.h"
-
-#include "base/logging.h"
-
-namespace content {
-
-MessagePortMessage::MessagePortMessage() {
-}
-
-MessagePortMessage::MessagePortMessage(const base::string16& message)
- : message_as_string(message) {
-}
-
-MessagePortMessage::MessagePortMessage(std::unique_ptr<base::Value> message) {
- message_as_value.Append(message.release());
-}
-
-MessagePortMessage::MessagePortMessage(const MessagePortMessage& other) {
- *this = other;
-}
-
-MessagePortMessage& MessagePortMessage::operator=(
- const MessagePortMessage& other) {
- message_as_string = other.message_as_string;
- message_as_value.Clear();
- const base::Value* value;
- if (other.message_as_value.Get(0, &value))
- message_as_value.Append(value->DeepCopy());
- return *this;
-}
-
-MessagePortMessage::~MessagePortMessage() {
-}
-
-const base::Value* MessagePortMessage::as_value() const {
- const base::Value* value = nullptr;
- bool result = message_as_value.Get(0, &value);
- DCHECK(result);
- return value;
-}
-
-} // namespace content
« no previous file with comments | « content/public/common/message_port_types.h ('k') | content/renderer/shared_worker/embedded_shared_worker_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698