1 // Copyright 2014 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 MEDIA_CAST_LOGGING_PROTO_PROTO_UTILS_H_ 6 #define MEDIA_CAST_LOGGING_PROTO_PROTO_UTILS_H_ 7 8 #include "media/cast/logging/logging_defines.h" 9 #include "media/cast/logging/proto/raw_events.pb.h" 10 11 // Utility functions for cast logging protos. 12 namespace media { 13 namespace cast { 14 15 // Converts |event| to a corresponding value in |media::cast::proto::EventType|. 16 media::cast::proto::EventType ToProtoEventType(CastLoggingEvent event); 17 18 } // namespace cast 19 } // namespace media 20 21 #endif // MEDIA_CAST_LOGGING_PROTO_PROTO_UTILS_H_ 22