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

Unified Diff: components/copresence/tokens.cc

Issue 806853003: Revert of Revert of Adding CopresenceState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/copresence/tokens.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/copresence/tokens.cc
diff --git a/components/copresence/tokens.cc b/components/copresence/tokens.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0fdb0c7c375c9ac428c2ba2aeb23bcdb0c10d0c5
--- /dev/null
+++ b/components/copresence/tokens.cc
@@ -0,0 +1,25 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/copresence/tokens.h"
+
+namespace copresence {
+
+TransmittedToken::TransmittedToken()
+ : medium(TOKEN_MEDIUM_UNKNOWN),
+ broadcast_confirmed(false) {}
+
+ReceivedToken::ReceivedToken()
+ : medium(TOKEN_MEDIUM_UNKNOWN),
+ valid(UNKNOWN) {}
+
+ReceivedToken::ReceivedToken(const std::string& id,
+ TokenMedium medium,
+ base::Time last_time)
+ : id(id),
+ medium(medium),
+ last_time(last_time),
+ valid(UNKNOWN) {}
+
+} // namespace copresence
« no previous file with comments | « components/copresence/tokens.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698