Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: remoting/protocol/pepper_transport_socket_adapter.h

Issue 9958028: Add a new GetNegotiatedProtocol method to StreamSocket and implement in all subclasses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/fake_session.cc ('k') | remoting/protocol/pepper_transport_socket_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « remoting/protocol/fake_session.cc ('k') | remoting/protocol/pepper_transport_socket_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698