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

Side by Side Diff: net/curvecp/curvecp_client_socket.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
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 NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ 5 #ifndef NET_CURVECP_CURVECP_CLIENT_SOCKET_H_
6 #define NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ 6 #define NET_CURVECP_CURVECP_CLIENT_SOCKET_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
11 #include "net/curvecp/client_packetizer.h" 11 #include "net/curvecp/client_packetizer.h"
(...skipping 20 matching lines...) Expand all
32 virtual bool IsConnectedAndIdle() const OVERRIDE; 32 virtual bool IsConnectedAndIdle() const OVERRIDE;
33 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; 33 virtual int GetPeerAddress(AddressList* address) const OVERRIDE;
34 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 34 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
35 virtual const BoundNetLog& NetLog() const OVERRIDE; 35 virtual const BoundNetLog& NetLog() const OVERRIDE;
36 virtual void SetSubresourceSpeculation() OVERRIDE; 36 virtual void SetSubresourceSpeculation() OVERRIDE;
37 virtual void SetOmniboxSpeculation() OVERRIDE; 37 virtual void SetOmniboxSpeculation() OVERRIDE;
38 virtual bool WasEverUsed() const OVERRIDE; 38 virtual bool WasEverUsed() const OVERRIDE;
39 virtual bool UsingTCPFastOpen() const OVERRIDE; 39 virtual bool UsingTCPFastOpen() const OVERRIDE;
40 virtual int64 NumBytesRead() const OVERRIDE; 40 virtual int64 NumBytesRead() const OVERRIDE;
41 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; 41 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
42 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE;
42 43
43 // Socket methods: 44 // Socket methods:
44 virtual int Read(IOBuffer* buf, 45 virtual int Read(IOBuffer* buf,
45 int buf_len, 46 int buf_len,
46 const CompletionCallback& callback) OVERRIDE; 47 const CompletionCallback& callback) OVERRIDE;
47 virtual int Write(IOBuffer* buf, 48 virtual int Write(IOBuffer* buf,
48 int buf_len, 49 int buf_len,
49 const CompletionCallback& callback) OVERRIDE; 50 const CompletionCallback& callback) OVERRIDE;
50 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 51 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
51 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 52 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
52 53
53 private: 54 private:
54 AddressList addresses_; 55 AddressList addresses_;
55 BoundNetLog net_log_; 56 BoundNetLog net_log_;
56 Messenger messenger_; 57 Messenger messenger_;
57 ClientPacketizer packetizer_; 58 ClientPacketizer packetizer_;
58 59
59 DISALLOW_COPY_AND_ASSIGN(CurveCPClientSocket); 60 DISALLOW_COPY_AND_ASSIGN(CurveCPClientSocket);
60 }; 61 };
61 62
62 } // namespace net 63 } // namespace net
63 64
64 #endif // NET_CURVECP_CURVECP_CLIENT_SOCKET_H_ 65 #endif // NET_CURVECP_CURVECP_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « jingle/notifier/base/proxy_resolving_client_socket.cc ('k') | net/curvecp/curvecp_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698