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

Unified Diff: remoting/protocol/transport.cc

Issue 9727005: Log connection type to syslogs and to the server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/transport.cc
diff --git a/remoting/protocol/transport.cc b/remoting/protocol/transport.cc
new file mode 100644
index 0000000000000000000000000000000000000000..282876072ec9356d1b1abbd62d979350c21212c2
--- /dev/null
+++ b/remoting/protocol/transport.cc
@@ -0,0 +1,32 @@
+// Copyright (c) 2012 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 "remoting/protocol/transport.h"
+
+#include "base/logging.h"
+
+namespace remoting {
+namespace protocol {
+
+TransportRoute::TransportRoute() {
+}
+
+TransportRoute::~TransportRoute() {
+}
+
+std::string TransportRoute::GetTypeString() const {
+ switch (type) {
+ case DIRECT:
+ return "direct";
+ case STUN:
+ return "stun";
+ case RELAY:
+ return "relay";
+ }
+ NOTREACHED();
+ return "";
+}
+
+} // namespace protocol
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698