| 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_SOCKET_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ |
| 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ | 6 #define EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // the socket. |channel_auth| must not be CHANNEL_AUTH_NONE. | 73 // the socket. |channel_auth| must not be CHANNEL_AUTH_NONE. |
| 74 CastSocket(const std::string& owner_extension_id, | 74 CastSocket(const std::string& owner_extension_id, |
| 75 const net::IPEndPoint& ip_endpoint, | 75 const net::IPEndPoint& ip_endpoint, |
| 76 ChannelAuthType channel_auth, | 76 ChannelAuthType channel_auth, |
| 77 CastSocket::Delegate* delegate, | 77 CastSocket::Delegate* delegate, |
| 78 net::NetLog* net_log, | 78 net::NetLog* net_log, |
| 79 const base::TimeDelta& connect_timeout, | 79 const base::TimeDelta& connect_timeout, |
| 80 const scoped_refptr<Logger>& logger); | 80 const scoped_refptr<Logger>& logger); |
| 81 | 81 |
| 82 // Ensures that the socket is closed. | 82 // Ensures that the socket is closed. |
| 83 virtual ~CastSocket(); | 83 ~CastSocket() override; |
| 84 | 84 |
| 85 // The IP endpoint for the destination of the channel. | 85 // The IP endpoint for the destination of the channel. |
| 86 const net::IPEndPoint& ip_endpoint() const { return ip_endpoint_; } | 86 const net::IPEndPoint& ip_endpoint() const { return ip_endpoint_; } |
| 87 | 87 |
| 88 // The authentication level requested for the channel. | 88 // The authentication level requested for the channel. |
| 89 ChannelAuthType channel_auth() const { return channel_auth_; } | 89 ChannelAuthType channel_auth() const { return channel_auth_; } |
| 90 | 90 |
| 91 // Returns a cast:// or casts:// URL for the channel endpoint. | 91 // Returns a cast:// or casts:// URL for the channel endpoint. |
| 92 // For backwards compatibility. | 92 // For backwards compatibility. |
| 93 std::string CastUrl() const; | 93 std::string CastUrl() const; |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 FRIEND_TEST_ALL_PREFIXES(CastSocketTest, TestReadHeaderParseError); | 336 FRIEND_TEST_ALL_PREFIXES(CastSocketTest, TestReadHeaderParseError); |
| 337 FRIEND_TEST_ALL_PREFIXES(CastSocketTest, TestReadMany); | 337 FRIEND_TEST_ALL_PREFIXES(CastSocketTest, TestReadMany); |
| 338 FRIEND_TEST_ALL_PREFIXES(CastSocketTest, TestWriteErrorLargeMessage); | 338 FRIEND_TEST_ALL_PREFIXES(CastSocketTest, TestWriteErrorLargeMessage); |
| 339 DISALLOW_COPY_AND_ASSIGN(CastSocket); | 339 DISALLOW_COPY_AND_ASSIGN(CastSocket); |
| 340 }; | 340 }; |
| 341 } // namespace cast_channel | 341 } // namespace cast_channel |
| 342 } // namespace core_api | 342 } // namespace core_api |
| 343 } // namespace extensions | 343 } // namespace extensions |
| 344 | 344 |
| 345 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ | 345 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_SOCKET_H_ |
| OLD | NEW |