| OLD | NEW |
| 1 // Copyright (c) 2011 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 #ifndef REMOTING_PROTOCOL_PEPPER_TRANSPORT_SOCKET_ADAPTER_H_ | 5 #ifndef REMOTING_PROTOCOL_PEPPER_TRANSPORT_SOCKET_ADAPTER_H_ |
| 6 #define REMOTING_PROTOCOL_PEPPER_TRANSPORT_SOCKET_ADAPTER_H_ | 6 #define REMOTING_PROTOCOL_PEPPER_TRANSPORT_SOCKET_ADAPTER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual bool IsConnectedAndIdle() const OVERRIDE; | 63 virtual bool IsConnectedAndIdle() const OVERRIDE; |
| 64 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; | 64 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; |
| 65 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; | 65 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; |
| 66 virtual const net::BoundNetLog& NetLog() const OVERRIDE; | 66 virtual const net::BoundNetLog& NetLog() const OVERRIDE; |
| 67 virtual void SetSubresourceSpeculation() OVERRIDE; | 67 virtual void SetSubresourceSpeculation() OVERRIDE; |
| 68 virtual void SetOmniboxSpeculation() OVERRIDE; | 68 virtual void SetOmniboxSpeculation() OVERRIDE; |
| 69 virtual bool WasEverUsed() const OVERRIDE; | 69 virtual bool WasEverUsed() const OVERRIDE; |
| 70 virtual bool UsingTCPFastOpen() const OVERRIDE; | 70 virtual bool UsingTCPFastOpen() const OVERRIDE; |
| 71 virtual int64 NumBytesRead() const OVERRIDE; | 71 virtual int64 NumBytesRead() const OVERRIDE; |
| 72 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | 72 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; |
| 73 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; |
| 73 | 74 |
| 74 private: | 75 private: |
| 75 // Callbacks for PPAPI calls. | 76 // Callbacks for PPAPI calls. |
| 76 void OnConnect(int result); | 77 void OnConnect(int result); |
| 77 void OnNextAddress(int32_t result); | 78 void OnNextAddress(int32_t result); |
| 78 void OnRead(int32_t result); | 79 void OnRead(int32_t result); |
| 79 void OnWrite(int32_t result); | 80 void OnWrite(int32_t result); |
| 80 | 81 |
| 81 int ProcessCandidates(); | 82 int ProcessCandidates(); |
| 82 | 83 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 100 | 101 |
| 101 pp::CompletionCallbackFactory<PepperTransportSocketAdapter> callback_factory_; | 102 pp::CompletionCallbackFactory<PepperTransportSocketAdapter> callback_factory_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(PepperTransportSocketAdapter); | 104 DISALLOW_COPY_AND_ASSIGN(PepperTransportSocketAdapter); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace protocol | 107 } // namespace protocol |
| 107 } // namespace remoting | 108 } // namespace remoting |
| 108 | 109 |
| 109 #endif // REMOTING_PROTOCOL_PEPPER_TRANSPORT_SOCKET_ADAPTER_H_ | 110 #endif // REMOTING_PROTOCOL_PEPPER_TRANSPORT_SOCKET_ADAPTER_H_ |
| OLD | NEW |