blob: 755b439800f321f1d3445b56d129817359715b76 [file] [log] [blame]
// 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_BROWSER_MEDIA_ROUTER_ROUTE_MESSAGE_H_
#define CHROME_BROWSER_MEDIA_ROUTER_ROUTE_MESSAGE_H_
#include <stdint.h>
#include <string>
#include <vector>
#include "base/optional.h"
namespace media_router {
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();
};
} // namespace media_router
#endif // CHROME_BROWSER_MEDIA_ROUTER_ROUTE_MESSAGE_H_