Chromium Code Reviews| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 201 | 201 |
| 202 std::unique_ptr<cast_channel::Open::Params> params_; | 202 std::unique_ptr<cast_channel::Open::Params> params_; |
| 203 // The id of the newly opened socket. | 203 // The id of the newly opened socket. |
| 204 int new_channel_id_; | 204 int new_channel_id_; |
| 205 CastChannelAPI* api_; | 205 CastChannelAPI* api_; |
| 206 std::unique_ptr<net::IPEndPoint> ip_endpoint_; | 206 std::unique_ptr<net::IPEndPoint> ip_endpoint_; |
| 207 cast_channel::ChannelAuthType channel_auth_; | 207 cast_channel::ChannelAuthType channel_auth_; |
| 208 base::TimeDelta liveness_timeout_; | 208 base::TimeDelta liveness_timeout_; |
| 209 base::TimeDelta ping_interval_; | 209 base::TimeDelta ping_interval_; |
| 210 | 210 |
| 211 // The nonce challenge to send to the Cast receiver. | |
| 212 std::string nonce_; | |
|
mark a. foltz
2017/02/27 23:04:32
This belongs in CastSocketImpl. The extension API
ryanchung
2017/03/01 20:09:47
Done.
| |
| 213 | |
| 211 FRIEND_TEST_ALL_PREFIXES(CastChannelOpenFunctionTest, TestParseConnectInfo); | 214 FRIEND_TEST_ALL_PREFIXES(CastChannelOpenFunctionTest, TestParseConnectInfo); |
| 212 DISALLOW_COPY_AND_ASSIGN(CastChannelOpenFunction); | 215 DISALLOW_COPY_AND_ASSIGN(CastChannelOpenFunction); |
| 213 }; | 216 }; |
| 214 | 217 |
| 215 class CastChannelSendFunction : public CastChannelAsyncApiFunction { | 218 class CastChannelSendFunction : public CastChannelAsyncApiFunction { |
| 216 public: | 219 public: |
| 217 CastChannelSendFunction(); | 220 CastChannelSendFunction(); |
| 218 | 221 |
| 219 protected: | 222 protected: |
| 220 ~CastChannelSendFunction() override; | 223 ~CastChannelSendFunction() override; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 290 private: | 293 private: |
| 291 DECLARE_EXTENSION_FUNCTION("cast.channel.setAuthorityKeys", | 294 DECLARE_EXTENSION_FUNCTION("cast.channel.setAuthorityKeys", |
| 292 CAST_CHANNEL_SETAUTHORITYKEYS) | 295 CAST_CHANNEL_SETAUTHORITYKEYS) |
| 293 | 296 |
| 294 DISALLOW_COPY_AND_ASSIGN(CastChannelSetAuthorityKeysFunction); | 297 DISALLOW_COPY_AND_ASSIGN(CastChannelSetAuthorityKeysFunction); |
| 295 }; | 298 }; |
| 296 | 299 |
| 297 } // namespace extensions | 300 } // namespace extensions |
| 298 | 301 |
| 299 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ | 302 #endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_ |
| OLD | NEW |