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

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

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
« no previous file with comments | « content/public/browser/message_port_provider.h ('k') | content/public/common/message_port_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/message_port_types.h
diff --git a/content/public/common/message_port_types.h b/content/public/common/message_port_types.h
deleted file mode 100644
index cfcce9f4797a4160cb8117c7602f713f3eb3a0e6..0000000000000000000000000000000000000000
--- a/content/public/common/message_port_types.h
+++ /dev/null
@@ -1,48 +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.
-
-#ifndef CONTENT_PUBLIC_COMMON_MESSAGE_PORT_TYPES_H_
-#define CONTENT_PUBLIC_COMMON_MESSAGE_PORT_TYPES_H_
-
-#include <memory>
-#include <vector>
-
-#include "base/strings/string16.h"
-#include "base/values.h"
-#include "content/common/content_export.h"
-#include "ipc/ipc_message.h"
-
-namespace content {
-
-// Struct representing a message sent across a message port. This struct hides
-// the fact that messages can be serialized/encoded in multiple ways from code
-// that doesn't care about the message contents.
-struct CONTENT_EXPORT MessagePortMessage {
- MessagePortMessage();
- explicit MessagePortMessage(const base::string16& message);
- explicit MessagePortMessage(std::unique_ptr<base::Value> message);
- MessagePortMessage(const MessagePortMessage& other);
- MessagePortMessage& operator=(const MessagePortMessage& other);
- ~MessagePortMessage();
-
- bool is_string() const { return !message_as_string.empty(); }
- bool is_value() const { return !message_as_value.empty(); }
- const base::Value* as_value() const;
-
- // Message serialized using blink::WebSerializedScriptValue. Only one of
- // |message_as_string| and |message_as_value| should be non-empty.
- base::string16 message_as_string;
- // Message as a base::Value. This is either an empty list or a list
- // containing exactly one item.
- base::ListValue message_as_value;
-};
-
-struct TransferredMessagePort {
- int id = MSG_ROUTING_NONE;
- bool send_messages_as_values = false;
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_COMMON_MESSAGE_PORT_TYPES_H_
« no previous file with comments | « content/public/browser/message_port_provider.h ('k') | content/public/common/message_port_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698