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

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

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 | « no previous file | components/cast_channel/cast_channel_enum.cc » ('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 #ifndef COMPONENTS_CAST_CHANNEL_CAST_CHANNEL_ENUM_H_ 5 #ifndef COMPONENTS_CAST_CHANNEL_CAST_CHANNEL_ENUM_H_
6 #define COMPONENTS_CAST_CHANNEL_CAST_CHANNEL_ENUM_H_ 6 #define COMPONENTS_CAST_CHANNEL_CAST_CHANNEL_ENUM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace cast_channel { 10 namespace cast_channel {
(...skipping 23 matching lines...) Expand all
34 CONNECT_ERROR, 34 CONNECT_ERROR,
35 CAST_SOCKET_ERROR, 35 CAST_SOCKET_ERROR,
36 TRANSPORT_ERROR, 36 TRANSPORT_ERROR,
37 INVALID_MESSAGE, 37 INVALID_MESSAGE,
38 INVALID_CHANNEL_ID, 38 INVALID_CHANNEL_ID,
39 CONNECT_TIMEOUT, 39 CONNECT_TIMEOUT,
40 PING_TIMEOUT, 40 PING_TIMEOUT,
41 UNKNOWN, 41 UNKNOWN,
42 }; 42 };
43 43
44 // Maps to enum ChannelAuth in cast_channel.idl
45 enum class ChannelAuthType {
46 NONE,
47 SSL_VERIFIED,
48 };
49
50 // Used in ErrorInfo.eventType in cast_channel.idl 44 // Used in ErrorInfo.eventType in cast_channel.idl
51 enum class ChannelEvent { 45 enum class ChannelEvent {
52 UNKNOWN = 0, 46 UNKNOWN = 0,
53 CAST_SOCKET_CREATED, 47 CAST_SOCKET_CREATED,
54 READY_STATE_CHANGED, 48 READY_STATE_CHANGED,
55 CONNECTION_STATE_CHANGED, 49 CONNECTION_STATE_CHANGED,
56 READ_STATE_CHANGED, 50 READ_STATE_CHANGED,
57 WRITE_STATE_CHANGED, 51 WRITE_STATE_CHANGED,
58 ERROR_STATE_CHANGED, 52 ERROR_STATE_CHANGED,
59 CONNECT_FAILED, 53 CONNECT_FAILED,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 WRITE, 131 WRITE,
138 WRITE_COMPLETE, 132 WRITE_COMPLETE,
139 DO_CALLBACK, 133 DO_CALLBACK,
140 HANDLE_ERROR, 134 HANDLE_ERROR,
141 WRITE_ERROR, // Terminal states here and below. 135 WRITE_ERROR, // Terminal states here and below.
142 IDLE, 136 IDLE,
143 }; 137 };
144 138
145 std::string ReadyStateToString(ReadyState ready_state); 139 std::string ReadyStateToString(ReadyState ready_state);
146 std::string ChannelErrorToString(ChannelError channel_error); 140 std::string ChannelErrorToString(ChannelError channel_error);
147 std::string ChannelAuthTypeToString(ChannelAuthType channel_auth);
148 141
149 } // namespace cast_channel 142 } // namespace cast_channel
150 143
151 #endif // COMPONENTS_CAST_CHANNEL_CAST_CHANNEL_ENUM_H_ 144 #endif // COMPONENTS_CAST_CHANNEL_CAST_CHANNEL_ENUM_H_
OLDNEW
« no previous file with comments | « no previous file | components/cast_channel/cast_channel_enum.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698