1 // Copyright (c) 2012 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 #include "remoting/protocol/transport.h" 6 7 #include "base/logging.h" 8 9 namespace remoting { 10 namespace protocol { 11 12 // static GetTypeString(RouteType type)13std::string TransportRoute::GetTypeString(RouteType type) { 14 switch (type) { 15 case DIRECT: 16 return "direct"; 17 case STUN: 18 return "stun"; 19 case RELAY: 20 return "relay"; 21 } 22 NOTREACHED(); 23 return std::string(); 24 } 25 TransportRoute()26TransportRoute::TransportRoute() : type(DIRECT) { 27 } 28 ~TransportRoute()29TransportRoute::~TransportRoute() { 30 } 31 32 } // namespace protocol 33 } // namespace remoting 34