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

Side by Side Diff: trunk/src/jingle/glue/channel_socket_adapter.h

Issue 227083002: Revert 261966 "make SetReceiveBufferSize and SetSendBufferSize r..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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) 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 JINGLE_GLUE_CHANNEL_SOCKET_ADAPTER_H_ 5 #ifndef JINGLE_GLUE_CHANNEL_SOCKET_ADAPTER_H_
6 #define JINGLE_GLUE_CHANNEL_SOCKET_ADAPTER_H_ 6 #define JINGLE_GLUE_CHANNEL_SOCKET_ADAPTER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "net/socket/socket.h" 10 #include "net/socket/socket.h"
(...skipping 30 matching lines...) Expand all
41 // be returned by Read() and Write() after the stream is closed. 41 // be returned by Read() and Write() after the stream is closed.
42 // Must be called before the session and the channel are destroyed. 42 // Must be called before the session and the channel are destroyed.
43 void Close(int error_code); 43 void Close(int error_code);
44 44
45 // Socket implementation. 45 // Socket implementation.
46 virtual int Read(net::IOBuffer* buf, int buf_len, 46 virtual int Read(net::IOBuffer* buf, int buf_len,
47 const net::CompletionCallback& callback) OVERRIDE; 47 const net::CompletionCallback& callback) OVERRIDE;
48 virtual int Write(net::IOBuffer* buf, int buf_len, 48 virtual int Write(net::IOBuffer* buf, int buf_len,
49 const net::CompletionCallback& callback) OVERRIDE; 49 const net::CompletionCallback& callback) OVERRIDE;
50 50
51 virtual int SetReceiveBufferSize(int32 size) OVERRIDE; 51 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
52 virtual int SetSendBufferSize(int32 size) OVERRIDE; 52 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
53 53
54 private: 54 private:
55 void OnNewPacket(cricket::TransportChannel* channel, 55 void OnNewPacket(cricket::TransportChannel* channel,
56 const char* data, 56 const char* data,
57 size_t data_size, 57 size_t data_size,
58 const talk_base::PacketTime& packet_time, 58 const talk_base::PacketTime& packet_time,
59 int flags); 59 int flags);
60 void OnWritableState(cricket::TransportChannel* channel); 60 void OnWritableState(cricket::TransportChannel* channel);
61 void OnChannelDestroyed(cricket::TransportChannel* channel); 61 void OnChannelDestroyed(cricket::TransportChannel* channel);
62 62
(...skipping 12 matching lines...) Expand all
75 int write_buffer_size_; 75 int write_buffer_size_;
76 76
77 int closed_error_code_; 77 int closed_error_code_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(TransportChannelSocketAdapter); 79 DISALLOW_COPY_AND_ASSIGN(TransportChannelSocketAdapter);
80 }; 80 };
81 81
82 } // namespace jingle_glue 82 } // namespace jingle_glue
83 83
84 #endif // JINGLE_GLUE_CHANNEL_SOCKET_ADAPTER_H_ 84 #endif // JINGLE_GLUE_CHANNEL_SOCKET_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698