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

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

Issue 10209008: Roll libjingle 132:133 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « content/renderer/p2p/port_allocator.cc ('k') | jingle/glue/channel_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) 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual int Read(net::IOBuffer* buf, int buf_len, 43 virtual int Read(net::IOBuffer* buf, int buf_len,
44 const net::CompletionCallback& callback) OVERRIDE; 44 const net::CompletionCallback& callback) OVERRIDE;
45 virtual int Write(net::IOBuffer* buf, int buf_len, 45 virtual int Write(net::IOBuffer* buf, int buf_len,
46 const net::CompletionCallback& callback) OVERRIDE; 46 const net::CompletionCallback& callback) OVERRIDE;
47 47
48 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; 48 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE;
49 virtual bool SetSendBufferSize(int32 size) OVERRIDE; 49 virtual bool SetSendBufferSize(int32 size) OVERRIDE;
50 50
51 private: 51 private:
52 void OnNewPacket(cricket::TransportChannel* channel, 52 void OnNewPacket(cricket::TransportChannel* channel,
53 const char* data, size_t data_size); 53 const char* data,
54 size_t data_size,
55 int flags);
54 void OnWritableState(cricket::TransportChannel* channel); 56 void OnWritableState(cricket::TransportChannel* channel);
55 void OnChannelDestroyed(cricket::TransportChannel* channel); 57 void OnChannelDestroyed(cricket::TransportChannel* channel);
56 58
57 MessageLoop* message_loop_; 59 MessageLoop* message_loop_;
58 60
59 cricket::TransportChannel* channel_; 61 cricket::TransportChannel* channel_;
60 62
61 base::Closure destruction_callback_; 63 base::Closure destruction_callback_;
62 64
63 net::CompletionCallback read_callback_; 65 net::CompletionCallback read_callback_;
64 scoped_refptr<net::IOBuffer> read_buffer_; 66 scoped_refptr<net::IOBuffer> read_buffer_;
65 int read_buffer_size_; 67 int read_buffer_size_;
66 68
67 net::CompletionCallback write_callback_; 69 net::CompletionCallback write_callback_;
68 scoped_refptr<net::IOBuffer> write_buffer_; 70 scoped_refptr<net::IOBuffer> write_buffer_;
69 int write_buffer_size_; 71 int write_buffer_size_;
70 72
71 int closed_error_code_; 73 int closed_error_code_;
72 74
73 DISALLOW_COPY_AND_ASSIGN(TransportChannelSocketAdapter); 75 DISALLOW_COPY_AND_ASSIGN(TransportChannelSocketAdapter);
74 }; 76 };
75 77
76 } // namespace jingle_glue 78 } // namespace jingle_glue
77 79
78 #endif // JINGLE_GLUE_CHANNEL_SOCKET_ADAPTER_H_ 80 #endif // JINGLE_GLUE_CHANNEL_SOCKET_ADAPTER_H_
OLDNEW
« no previous file with comments | « content/renderer/p2p/port_allocator.cc ('k') | jingle/glue/channel_socket_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698