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

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

Issue 390983003: Remove remoting/jingle_glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/protocol/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"
11 #include "net/base/io_buffer.h" 11 #include "net/base/io_buffer.h"
12 #include "net/base/ip_endpoint.h" 12 #include "net/base/ip_endpoint.h"
13 #include "net/base/net_errors.h" 13 #include "net/base/net_errors.h"
14 #include "net/udp/udp_server_socket.h" 14 #include "net/udp/udp_server_socket.h"
15 #include "remoting/jingle_glue/socket_util.h" 15 #include "remoting/protocol/socket_util.h"
16 #include "third_party/libjingle/source/talk/base/asyncpacketsocket.h" 16 #include "third_party/libjingle/source/talk/base/asyncpacketsocket.h"
17 #include "third_party/libjingle/source/talk/base/nethelpers.h" 17 #include "third_party/libjingle/source/talk/base/nethelpers.h"
18 18
19 namespace remoting { 19 namespace remoting {
20 namespace protocol {
20 21
21 namespace { 22 namespace {
22 23
23 // Size of the buffer to allocate for RecvFrom(). 24 // Size of the buffer to allocate for RecvFrom().
24 const int kReceiveBufferSize = 65536; 25 const int kReceiveBufferSize = 65536;
25 26
26 // Maximum amount of data in the send buffers. This is necessary to 27 // Maximum amount of data in the send buffers. This is necessary to
27 // prevent out-of-memory crashes if the caller sends data faster than 28 // prevent out-of-memory crashes if the caller sends data faster than
28 // Pepper's UDP API can handle it. This maximum should never be 29 // Pepper's UDP API can handle it. This maximum should never be
29 // reached under normal conditions. 30 // reached under normal conditions.
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 // We don't use TCP sockets for remoting connections. 386 // We don't use TCP sockets for remoting connections.
386 NOTREACHED(); 387 NOTREACHED();
387 return NULL; 388 return NULL;
388 } 389 }
389 390
390 talk_base::AsyncResolverInterface* 391 talk_base::AsyncResolverInterface*
391 ChromiumPacketSocketFactory::CreateAsyncResolver() { 392 ChromiumPacketSocketFactory::CreateAsyncResolver() {
392 return new talk_base::AsyncResolver(); 393 return new talk_base::AsyncResolver();
393 } 394 }
394 395
396 } // namespace protocol
395 } // namespace remoting 397 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/chromium_socket_factory.h ('k') | remoting/protocol/chromium_socket_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698