| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ |
| 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ | 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 static net::IPEndPoint* ParseConnectInfo( | 173 static net::IPEndPoint* ParseConnectInfo( |
| 174 const api::cast_channel::ConnectInfo& connect_info); | 174 const api::cast_channel::ConnectInfo& connect_info); |
| 175 | 175 |
| 176 void OnOpen(cast_channel::ChannelError result); | 176 void OnOpen(cast_channel::ChannelError result); |
| 177 | 177 |
| 178 std::unique_ptr<api::cast_channel::Open::Params> params_; | 178 std::unique_ptr<api::cast_channel::Open::Params> params_; |
| 179 // The id of the newly opened socket. | 179 // The id of the newly opened socket. |
| 180 int new_channel_id_; | 180 int new_channel_id_; |
| 181 CastChannelAPI* api_; | 181 CastChannelAPI* api_; |
| 182 std::unique_ptr<net::IPEndPoint> ip_endpoint_; | 182 std::unique_ptr<net::IPEndPoint> ip_endpoint_; |
| 183 cast_channel::ChannelAuthType channel_auth_; | |
| 184 base::TimeDelta liveness_timeout_; | 183 base::TimeDelta liveness_timeout_; |
| 185 base::TimeDelta ping_interval_; | 184 base::TimeDelta ping_interval_; |
| 186 | 185 |
| 187 FRIEND_TEST_ALL_PREFIXES(CastChannelOpenFunctionTest, TestParseConnectInfo); | 186 FRIEND_TEST_ALL_PREFIXES(CastChannelOpenFunctionTest, TestParseConnectInfo); |
| 188 DISALLOW_COPY_AND_ASSIGN(CastChannelOpenFunction); | 187 DISALLOW_COPY_AND_ASSIGN(CastChannelOpenFunction); |
| 189 }; | 188 }; |
| 190 | 189 |
| 191 class CastChannelSendFunction : public CastChannelAsyncApiFunction { | 190 class CastChannelSendFunction : public CastChannelAsyncApiFunction { |
| 192 public: | 191 public: |
| 193 CastChannelSendFunction(); | 192 CastChannelSendFunction(); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 227 |
| 229 std::unique_ptr<api::cast_channel::Close::Params> params_; | 228 std::unique_ptr<api::cast_channel::Close::Params> params_; |
| 230 CastChannelAPI* api_; | 229 CastChannelAPI* api_; |
| 231 | 230 |
| 232 DISALLOW_COPY_AND_ASSIGN(CastChannelCloseFunction); | 231 DISALLOW_COPY_AND_ASSIGN(CastChannelCloseFunction); |
| 233 }; | 232 }; |
| 234 | 233 |
| 235 } // namespace extensions | 234 } // namespace extensions |
| 236 | 235 |
| 237 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ | 236 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ |
| OLD | NEW |