| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "remoting/protocol/ssl_hmac_channel_authenticator.h" | 5 #include "remoting/protocol/ssl_hmac_channel_authenticator.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 NOTREACHED(); | 173 NOTREACHED(); |
| 174 } | 174 } |
| 175 void ClearConnectionAttempts() override { NOTREACHED(); } | 175 void ClearConnectionAttempts() override { NOTREACHED(); } |
| 176 void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override { | 176 void AddConnectionAttempts(const net::ConnectionAttempts& attempts) override { |
| 177 NOTREACHED(); | 177 NOTREACHED(); |
| 178 } | 178 } |
| 179 int64_t GetTotalReceivedBytes() const override { | 179 int64_t GetTotalReceivedBytes() const override { |
| 180 NOTIMPLEMENTED(); | 180 NOTIMPLEMENTED(); |
| 181 return 0; | 181 return 0; |
| 182 } | 182 } |
| 183 void DumpMemoryStats( |
| 184 base::trace_event::MemoryAllocatorDump* dump) const override { |
| 185 NOTREACHED(); |
| 186 } |
| 183 | 187 |
| 184 private: | 188 private: |
| 185 std::unique_ptr<P2PStreamSocket> socket_; | 189 std::unique_ptr<P2PStreamSocket> socket_; |
| 186 net::NetLogWithSource net_log_; | 190 net::NetLogWithSource net_log_; |
| 187 }; | 191 }; |
| 188 | 192 |
| 189 // Implements P2PStreamSocket interface on top of net::StreamSocket. | 193 // Implements P2PStreamSocket interface on top of net::StreamSocket. |
| 190 class P2PStreamSocketAdapter : public P2PStreamSocket { | 194 class P2PStreamSocketAdapter : public P2PStreamSocket { |
| 191 public: | 195 public: |
| 192 P2PStreamSocketAdapter(std::unique_ptr<net::StreamSocket> socket, | 196 P2PStreamSocketAdapter(std::unique_ptr<net::StreamSocket> socket, |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 std::move(socket_), std::move(server_context_))); | 493 std::move(socket_), std::move(server_context_))); |
| 490 } | 494 } |
| 491 } | 495 } |
| 492 | 496 |
| 493 void SslHmacChannelAuthenticator::NotifyError(int error) { | 497 void SslHmacChannelAuthenticator::NotifyError(int error) { |
| 494 base::ResetAndReturn(&done_callback_).Run(error, nullptr); | 498 base::ResetAndReturn(&done_callback_).Run(error, nullptr); |
| 495 } | 499 } |
| 496 | 500 |
| 497 } // namespace protocol | 501 } // namespace protocol |
| 498 } // namespace remoting | 502 } // namespace remoting |
| OLD | NEW |