1 // Copyright 2019 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CAST_SENDER_CHANNEL_MESSAGE_UTIL_H_ 6 #define CAST_SENDER_CHANNEL_MESSAGE_UTIL_H_ 7 8 #include "cast/common/channel/message_util.h" 9 #include "cast/common/channel/proto/cast_channel.pb.h" 10 #include "platform/base/error.h" 11 12 namespace openscreen { 13 namespace cast { 14 15 class AuthContext; 16 17 ::cast::channel::CastMessage CreateAuthChallengeMessage( 18 const AuthContext& auth_context); 19 20 // |request_id| must be unique for |sender_id|. 21 ErrorOr<::cast::channel::CastMessage> CreateAppAvailabilityRequest( 22 const std::string& sender_id, 23 int request_id, 24 const std::string& app_id); 25 26 } // namespace cast 27 } // namespace openscreen 28 29 #endif // CAST_SENDER_CHANNEL_MESSAGE_UTIL_H_ 30