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

Side by Side Diff: remoting/protocol/fake_session.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/jingle_glue/ssl_socket_adapter.cc ('k') | remoting/protocol/fake_session.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) 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 #ifndef REMOTING_PROTOCOL_FAKE_SESSION_H_ 5 #ifndef REMOTING_PROTOCOL_FAKE_SESSION_H_
6 #define REMOTING_PROTOCOL_FAKE_SESSION_H_ 6 #define REMOTING_PROTOCOL_FAKE_SESSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual bool IsConnectedAndIdle() const OVERRIDE; 61 virtual bool IsConnectedAndIdle() const OVERRIDE;
62 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; 62 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE;
63 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; 63 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE;
64 virtual const net::BoundNetLog& NetLog() const OVERRIDE; 64 virtual const net::BoundNetLog& NetLog() const OVERRIDE;
65 virtual void SetSubresourceSpeculation() OVERRIDE; 65 virtual void SetSubresourceSpeculation() OVERRIDE;
66 virtual void SetOmniboxSpeculation() OVERRIDE; 66 virtual void SetOmniboxSpeculation() OVERRIDE;
67 virtual bool WasEverUsed() const OVERRIDE; 67 virtual bool WasEverUsed() const OVERRIDE;
68 virtual bool UsingTCPFastOpen() const OVERRIDE; 68 virtual bool UsingTCPFastOpen() const OVERRIDE;
69 virtual int64 NumBytesRead() const OVERRIDE; 69 virtual int64 NumBytesRead() const OVERRIDE;
70 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; 70 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
71 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE;
71 72
72 private: 73 private:
73 bool read_pending_; 74 bool read_pending_;
74 scoped_refptr<net::IOBuffer> read_buffer_; 75 scoped_refptr<net::IOBuffer> read_buffer_;
75 int read_buffer_size_; 76 int read_buffer_size_;
76 net::CompletionCallback read_callback_; 77 net::CompletionCallback read_callback_;
77 base::WeakPtr<FakeSocket> peer_socket_; 78 base::WeakPtr<FakeSocket> peer_socket_;
78 79
79 std::string written_data_; 80 std::string written_data_;
80 std::string input_data_; 81 std::string input_data_;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 ErrorCode error_; 186 ErrorCode error_;
186 bool closed_; 187 bool closed_;
187 188
188 DISALLOW_COPY_AND_ASSIGN(FakeSession); 189 DISALLOW_COPY_AND_ASSIGN(FakeSession);
189 }; 190 };
190 191
191 } // namespace protocol 192 } // namespace protocol
192 } // namespace remoting 193 } // namespace remoting
193 194
194 #endif // REMOTING_PROTOCOL_FAKE_SESSION_H_ 195 #endif // REMOTING_PROTOCOL_FAKE_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/jingle_glue/ssl_socket_adapter.cc ('k') | remoting/protocol/fake_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698