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

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

Issue 2891923004: [cast_channel] Make cast_channel related files not depend on "cast_channel.h" (Closed)
Patch Set: fix windows compile errors 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/OWNERS ('k') | 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_CAST_CHANNEL_CAST_CHANNEL_ENUM_H_
6 #define COMPONENTS_CAST_CHANNEL_CAST_CHANNEL_ENUM_H_
7
8 #include <string>
9
10 namespace cast_channel {
11
12 // Maps to enum ReadyState in cast_channel.idl
13 enum class ReadyState {
14 NONE,
15 CONNECTING,
16 OPEN,
17 CLOSING,
18 CLOSED,
19 };
20
21 // Maps to enum ChannelError in cast_channel.idl
22 enum class ChannelError {
23 NONE,
24 CHANNEL_NOT_OPEN,
25 AUTHENTICATION_ERROR,
26 CONNECT_ERROR,
27 CAST_SOCKET_ERROR,
28 TRANSPORT_ERROR,
29 INVALID_MESSAGE,
30 INVALID_CHANNEL_ID,
31 CONNECT_TIMEOUT,
32 PING_TIMEOUT,
33 UNKNOWN,
34 };
35
36 // Maps to enum ChannelAuth in cast_channel.idl
37 enum class ChannelAuthType {
38 NONE,
39 SSL_VERIFIED,
40 };
41
42 std::string ReadyStateToString(ReadyState ready_state);
43 std::string ChannelErrorToString(ChannelError channel_error);
44 std::string ChannelAuthTypeToString(ChannelAuthType channel_auth);
45
46 } // namespace cast_channel
47
48 #endif // COMPONENTS_CAST_CHANNEL_CAST_CHANNEL_ENUM_H_
OLDNEW
« no previous file with comments | « components/cast_channel/OWNERS ('k') | components/cast_channel/cast_channel_enum.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698