Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 621 bool reported_; | 621 bool reported_; |
| 622 State state_; | 622 State state_; |
| 623 // Time duration to switch from receiving to not receiving. | 623 // Time duration to switch from receiving to not receiving. |
| 624 uint32_t receiving_timeout_; | 624 uint32_t receiving_timeout_; |
| 625 uint32_t time_created_ms_; | 625 uint32_t time_created_ms_; |
| 626 | 626 |
| 627 friend class Port; | 627 friend class Port; |
| 628 friend class ConnectionRequest; | 628 friend class ConnectionRequest; |
| 629 }; | 629 }; |
| 630 | 630 |
| 631 // ProxyConnection defers all the interesting work to the port | 631 // ProxyConnection defers all the interesting work to the port. |
| 632 class ProxyConnection : public Connection { | 632 class ProxyConnection : public Connection { |
| 633 public: | 633 public: |
| 634 ProxyConnection(Port* port, size_t index, const Candidate& candidate); | 634 ProxyConnection(Port* port, size_t index, const Candidate& remote_candidate); |
| 635 | 635 |
| 636 virtual int Send(const void* data, size_t size, | 636 int Send(const void* data, |
| 637 const rtc::PacketOptions& options); | 637 size_t size, |
| 638 virtual int GetError() { return error_; } | 638 const rtc::PacketOptions& options) override; |
| 639 int GetError() override { return error_; } | |
| 639 | 640 |
| 640 private: | 641 private: |
| 641 int error_; | 642 int error_ = 0; |
|
Taylor Brandstetter
2015/10/22 00:36:53
Just style improvements here.
| |
| 642 }; | 643 }; |
| 643 | 644 |
| 644 } // namespace cricket | 645 } // namespace cricket |
| 645 | 646 |
| 646 #endif // WEBRTC_P2P_BASE_PORT_H_ | 647 #endif // WEBRTC_P2P_BASE_PORT_H_ |
| OLD | NEW |