Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "content/renderer/p2p/ipc_socket_factory.h" | 5 #include "content/renderer/p2p/ipc_socket_factory.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 *ipc_option = P2P_SOCKET_OPT_SNDBUF; | 43 *ipc_option = P2P_SOCKET_OPT_SNDBUF; |
| 44 break; | 44 break; |
| 45 case talk_base::Socket::OPT_DSCP: | 45 case talk_base::Socket::OPT_DSCP: |
| 46 *ipc_option = P2P_SOCKET_OPT_DSCP; | 46 *ipc_option = P2P_SOCKET_OPT_DSCP; |
| 47 break; | 47 break; |
| 48 case talk_base::Socket::OPT_DONTFRAGMENT: | 48 case talk_base::Socket::OPT_DONTFRAGMENT: |
| 49 case talk_base::Socket::OPT_NODELAY: | 49 case talk_base::Socket::OPT_NODELAY: |
| 50 case talk_base::Socket::OPT_IPV6_V6ONLY: | 50 case talk_base::Socket::OPT_IPV6_V6ONLY: |
| 51 return false; // Not supported by the chrome sockets. | 51 return false; // Not supported by the chrome sockets. |
| 52 default: | 52 default: |
| 53 NOTREACHED(); | 53 // TODO(mallinath):FIXME and add back NOTREACHED(). |
| 54 // NOTREACHED(); | |
|
Ronghua Wu (Left Chromium)
2014/02/14 16:37:00
looks like there's a new OPT_RTP_SENDTIME_EXTN_ID.
Mallinath (Gone from Chromium)
2014/02/14 17:12:24
Add OPT_RTP_SENDTIME_EXTN_ID below line 50.
On 201
| |
| 54 return false; | 55 return false; |
| 55 } | 56 } |
| 56 return true; | 57 return true; |
| 57 } | 58 } |
| 58 | 59 |
| 59 // TODO(miu): This needs tuning. http://crbug.com/237960 | 60 // TODO(miu): This needs tuning. http://crbug.com/237960 |
| 60 const size_t kMaximumInFlightBytes = 64 * 1024; // 64 KB | 61 const size_t kMaximumInFlightBytes = 64 * 1024; // 64 KB |
| 61 | 62 |
| 62 // IpcPacketSocket implements talk_base::AsyncPacketSocket interface | 63 // IpcPacketSocket implements talk_base::AsyncPacketSocket interface |
| 63 // using P2PSocketClient that works over IPC-channel. It must be used | 64 // using P2PSocketClient that works over IPC-channel. It must be used |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 531 return NULL; | 532 return NULL; |
| 532 return socket.release(); | 533 return socket.release(); |
| 533 } | 534 } |
| 534 | 535 |
| 535 talk_base::AsyncResolverInterface* | 536 talk_base::AsyncResolverInterface* |
| 536 IpcPacketSocketFactory::CreateAsyncResolver() { | 537 IpcPacketSocketFactory::CreateAsyncResolver() { |
| 537 return new P2PAsyncAddressResolver(socket_dispatcher_); | 538 return new P2PAsyncAddressResolver(socket_dispatcher_); |
| 538 } | 539 } |
| 539 | 540 |
| 540 } // namespace content | 541 } // namespace content |
| OLD | NEW |