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

Unified Diff: chrome/common/media_router/route_message.h

Issue 2947403004: [MediaRouter] Replace RouteMessage with PresentationConnectionMessage (Closed)
Patch Set: rebase Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/media_router/route_message.h
diff --git a/chrome/common/media_router/route_message.h b/chrome/common/media_router/route_message.h
deleted file mode 100644
index 031569be3e9dba659fd9e8b6a745af5ca895415b..0000000000000000000000000000000000000000
--- a/chrome/common/media_router/route_message.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2016 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 CHROME_COMMON_MEDIA_ROUTER_ROUTE_MESSAGE_H_
-#define CHROME_COMMON_MEDIA_ROUTER_ROUTE_MESSAGE_H_
-
-#include <stdint.h>
-
-#include <string>
-#include <vector>
-
-#include "base/optional.h"
-
-namespace media_router {
-
-// TODO(mfoltz): Replace with nearly-identical
-// content::PresentationConnectionMessage.
-struct RouteMessage {
- enum Type { TEXT, BINARY } type = TEXT;
- // Used when the |type| is TEXT.
- base::Optional<std::string> text;
- // Used when the |type| is BINARY.
- base::Optional<std::vector<uint8_t>> binary;
-
- RouteMessage();
- RouteMessage(const RouteMessage& other);
- ~RouteMessage();
-
- std::string ToHumanReadableString() const;
-};
-
-} // namespace media_router
-
-#endif // CHROME_COMMON_MEDIA_ROUTER_ROUTE_MESSAGE_H_
« no previous file with comments | « chrome/common/media_router/mojo/media_router_struct_traits.h ('k') | chrome/common/media_router/route_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698