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.
5 #ifndef COMPONENTS_COPRESENCE_TOKENS_H_
6 #define COMPONENTS_COPRESENCE_TOKENS_H_
10 #include "base/time/time.h"
11 #include "components/copresence/proto/enums.pb.h"
13 namespace copresence
{
15 struct AudioToken final
{
16 AudioToken(const std::string
& token
, bool audible
)
24 // It's an error to define these constructors inline,
25 // so they're defined in tokens.cc.
27 struct TransmittedToken final
{
32 base::Time start_time
;
34 bool broadcast_confirmed
;
37 struct ReceivedToken final
{
45 ReceivedToken(const std::string
& id
,
47 base::Time last_time
);
51 base::Time start_time
;
56 } // namespace copresence
58 #endif // COMPONENTS_COPRESENCE_TOKENS_H_