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

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

Issue 2130803002: Deleting the copresence API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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/timed_map_unittest.cc ('k') | components/copresence/tokens.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 COMPONENTS_COPRESENCE_TOKENS_H_
6 #define COMPONENTS_COPRESENCE_TOKENS_H_
7
8 #include <string>
9
10 #include "base/time/time.h"
11 #include "components/copresence/proto/enums.pb.h"
12
13 namespace copresence {
14
15 // It's an error to define these constructors inline,
16 // so they're defined in tokens.cc.
17
18 struct TransmittedToken final {
19 TransmittedToken();
20
21 std::string id;
22 TokenMedium medium;
23 base::Time start_time;
24 base::Time stop_time;
25 bool broadcast_confirmed;
26 };
27
28 struct ReceivedToken final {
29 enum Validity {
30 UNKNOWN = 0,
31 VALID = 1,
32 INVALID = 2
33 };
34
35 ReceivedToken();
36 ReceivedToken(const std::string& id,
37 TokenMedium medium,
38 base::Time last_time);
39
40 std::string id;
41 TokenMedium medium;
42 base::Time start_time;
43 base::Time last_time;
44 Validity valid;
45 };
46
47 } // namespace copresence
48
49 #endif // COMPONENTS_COPRESENCE_TOKENS_H_
OLDNEW
« no previous file with comments | « components/copresence/timed_map_unittest.cc ('k') | components/copresence/tokens.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698