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

Side by Side Diff: components/cast_channel/cast_channel_enum.cc

Issue 2942743002: [cast_channel] Clean up CastSocketImpl ctor parameters (Closed)
Patch Set: fix compile error Created 3 years, 6 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/cast_channel/cast_channel_enum.h ('k') | components/cast_channel/cast_socket.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/cast_channel/cast_channel_enum.h" 5 #include "components/cast_channel/cast_channel_enum.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace cast_channel { 9 namespace cast_channel {
10 10
(...skipping 25 matching lines...) Expand all
36 CAST_CHANNEL_TYPE_TO_STRING(ChannelError::INVALID_CHANNEL_ID); 36 CAST_CHANNEL_TYPE_TO_STRING(ChannelError::INVALID_CHANNEL_ID);
37 CAST_CHANNEL_TYPE_TO_STRING(ChannelError::CONNECT_TIMEOUT); 37 CAST_CHANNEL_TYPE_TO_STRING(ChannelError::CONNECT_TIMEOUT);
38 CAST_CHANNEL_TYPE_TO_STRING(ChannelError::PING_TIMEOUT); 38 CAST_CHANNEL_TYPE_TO_STRING(ChannelError::PING_TIMEOUT);
39 CAST_CHANNEL_TYPE_TO_STRING(ChannelError::UNKNOWN); 39 CAST_CHANNEL_TYPE_TO_STRING(ChannelError::UNKNOWN);
40 } 40 }
41 NOTREACHED() << "Unknown channel_error " 41 NOTREACHED() << "Unknown channel_error "
42 << ChannelErrorToString(channel_error); 42 << ChannelErrorToString(channel_error);
43 return "Unknown channel_error"; 43 return "Unknown channel_error";
44 } 44 }
45 45
46 std::string ChannelAuthTypeToString(ChannelAuthType channel_auth) {
47 switch (channel_auth) {
48 CAST_CHANNEL_TYPE_TO_STRING(ChannelAuthType::NONE);
49 CAST_CHANNEL_TYPE_TO_STRING(ChannelAuthType::SSL_VERIFIED);
50 }
51 NOTREACHED() << "Unknown channel_auth "
52 << ChannelAuthTypeToString(channel_auth);
53 return "Unknown channel_auth";
54 }
55
56 } // namespace cast_channel 46 } // namespace cast_channel
OLDNEW
« no previous file with comments | « components/cast_channel/cast_channel_enum.h ('k') | components/cast_channel/cast_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698