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

Side by Side Diff: remoting/jingle_glue/chromium_socket_factory.cc

Issue 12207034: Linux/ChromeOS Chromium style checker cleanup, remoting/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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 #include "remoting/jingle_glue/chromium_socket_factory.h" 5 #include "remoting/jingle_glue/chromium_socket_factory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "jingle/glue/utils.h" 10 #include "jingle/glue/utils.h"
(...skipping 25 matching lines...) Expand all
36 36
37 class UdpPacketSocket : public talk_base::AsyncPacketSocket { 37 class UdpPacketSocket : public talk_base::AsyncPacketSocket {
38 public: 38 public:
39 UdpPacketSocket(); 39 UdpPacketSocket();
40 virtual ~UdpPacketSocket(); 40 virtual ~UdpPacketSocket();
41 41
42 bool Init(const talk_base::SocketAddress& local_address, 42 bool Init(const talk_base::SocketAddress& local_address,
43 int min_port, int max_port); 43 int min_port, int max_port);
44 44
45 // talk_base::AsyncPacketSocket interface. 45 // talk_base::AsyncPacketSocket interface.
46 virtual talk_base::SocketAddress GetLocalAddress() const; 46 virtual talk_base::SocketAddress GetLocalAddress() const OVERRIDE;
47 virtual talk_base::SocketAddress GetRemoteAddress() const; 47 virtual talk_base::SocketAddress GetRemoteAddress() const OVERRIDE;
48 virtual int Send(const void* data, size_t data_size); 48 virtual int Send(const void* data, size_t data_size) OVERRIDE;
49 virtual int SendTo(const void* data, size_t data_size, 49 virtual int SendTo(const void* data, size_t data_size,
50 const talk_base::SocketAddress& address); 50 const talk_base::SocketAddress& address) OVERRIDE;
51 virtual int Close(); 51 virtual int Close() OVERRIDE;
52 virtual State GetState() const; 52 virtual State GetState() const OVERRIDE;
53 virtual int GetOption(talk_base::Socket::Option option, int* value); 53 virtual int GetOption(talk_base::Socket::Option option, int* value) OVERRIDE;
54 virtual int SetOption(talk_base::Socket::Option option, int value); 54 virtual int SetOption(talk_base::Socket::Option option, int value) OVERRIDE;
55 virtual int GetError() const; 55 virtual int GetError() const OVERRIDE;
56 virtual void SetError(int error); 56 virtual void SetError(int error) OVERRIDE;
57 57
58 private: 58 private:
59 struct PendingPacket { 59 struct PendingPacket {
60 PendingPacket(const void* buffer, 60 PendingPacket(const void* buffer,
61 int buffer_size, 61 int buffer_size,
62 const net::IPEndPoint& address); 62 const net::IPEndPoint& address);
63 63
64 scoped_refptr<net::IOBufferWithSize> data; 64 scoped_refptr<net::IOBufferWithSize> data;
65 net::IPEndPoint address; 65 net::IPEndPoint address;
66 }; 66 };
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 const talk_base::SocketAddress& remote_address, 354 const talk_base::SocketAddress& remote_address,
355 const talk_base::ProxyInfo& proxy_info, 355 const talk_base::ProxyInfo& proxy_info,
356 const std::string& user_agent, 356 const std::string& user_agent,
357 bool ssl) { 357 bool ssl) {
358 // We don't use TCP sockets for remoting connections. 358 // We don't use TCP sockets for remoting connections.
359 NOTREACHED(); 359 NOTREACHED();
360 return NULL; 360 return NULL;
361 } 361 }
362 362
363 } // namespace remoting 363 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/policy_hack/policy_watcher_linux.cc ('k') | remoting/protocol/buffered_socket_writer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698