Refactor SnapSizer now that the --ash-multiple-snap-window-widths flag no longer...
[chromium-blink-merge.git] / remoting / protocol / transport.cc
blob13ed29fd25e649ebbbd65e9318d55c8b5a4d246b
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.
5 #include "remoting/protocol/transport.h"
7 #include "base/logging.h"
9 namespace remoting {
10 namespace protocol {
12 // static
13 std::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";
22 NOTREACHED();
23 return std::string();
26 TransportRoute::TransportRoute() : type(DIRECT) {
29 TransportRoute::~TransportRoute() {
32 } // namespace protocol
33 } // namespace remoting