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

Side by Side Diff: components/copresence/tokens.h

Issue 865483005: Creating the audio_modem component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging again Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « components/copresence/test/stub_whispernet_client.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_COPRESENCE_TOKENS_H_ 5 #ifndef COMPONENTS_COPRESENCE_TOKENS_H_
6 #define COMPONENTS_COPRESENCE_TOKENS_H_ 6 #define COMPONENTS_COPRESENCE_TOKENS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "components/copresence/proto/enums.pb.h" 11 #include "components/copresence/proto/enums.pb.h"
12 12
13 namespace copresence { 13 namespace copresence {
14 14
15 struct AudioToken final {
16 AudioToken(const std::string& token, bool audible)
17 : token(token),
18 audible(audible) {}
19
20 std::string token;
21 bool audible;
22 };
23
24 // It's an error to define these constructors inline, 15 // It's an error to define these constructors inline,
25 // so they're defined in tokens.cc. 16 // so they're defined in tokens.cc.
26 17
27 struct TransmittedToken final { 18 struct TransmittedToken final {
28 TransmittedToken(); 19 TransmittedToken();
29 20
30 std::string id; 21 std::string id;
31 TokenMedium medium; 22 TokenMedium medium;
32 base::Time start_time; 23 base::Time start_time;
33 base::Time stop_time; 24 base::Time stop_time;
(...skipping 15 matching lines...) Expand all
49 std::string id; 40 std::string id;
50 TokenMedium medium; 41 TokenMedium medium;
51 base::Time start_time; 42 base::Time start_time;
52 base::Time last_time; 43 base::Time last_time;
53 Validity valid; 44 Validity valid;
54 }; 45 };
55 46
56 } // namespace copresence 47 } // namespace copresence
57 48
58 #endif // COMPONENTS_COPRESENCE_TOKENS_H_ 49 #endif // COMPONENTS_COPRESENCE_TOKENS_H_
OLDNEW
« no previous file with comments | « components/copresence/test/stub_whispernet_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698