OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2011, 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "platform/Logging.h" | 34 #include "platform/Logging.h" |
35 #include "platform/network/SocketStreamError.h" | 35 #include "platform/network/SocketStreamError.h" |
36 #include "platform/network/SocketStreamHandleClient.h" | 36 #include "platform/network/SocketStreamHandleClient.h" |
37 #include "platform/network/SocketStreamHandleInternal.h" | 37 #include "platform/network/SocketStreamHandleInternal.h" |
38 #include "public/platform/Platform.h" | 38 #include "public/platform/Platform.h" |
39 #include "public/platform/WebData.h" | 39 #include "public/platform/WebData.h" |
40 #include "public/platform/WebSocketStreamError.h" | 40 #include "public/platform/WebSocketStreamError.h" |
41 #include "public/platform/WebSocketStreamHandle.h" | 41 #include "public/platform/WebSocketStreamHandle.h" |
42 #include "wtf/PassOwnPtr.h" | 42 #include "wtf/PassOwnPtr.h" |
43 | 43 |
44 namespace WebCore { | 44 namespace blink { |
45 | 45 |
46 static const unsigned bufferSize = 100 * 1024 * 1024; | 46 static const unsigned bufferSize = 100 * 1024 * 1024; |
47 | 47 |
48 SocketStreamHandleInternal::SocketStreamHandleInternal(SocketStreamHandle* handl
e) | 48 SocketStreamHandleInternal::SocketStreamHandleInternal(SocketStreamHandle* handl
e) |
49 : m_handle(handle) | 49 : m_handle(handle) |
50 , m_socket(adoptPtr(blink::Platform::current()->createSocketStreamHandle())) | 50 , m_socket(adoptPtr(blink::Platform::current()->createSocketStreamHandle())) |
51 , m_maxPendingSendAllowed(0) | 51 , m_maxPendingSendAllowed(0) |
52 , m_pendingAmountSent(0) | 52 , m_pendingAmountSent(0) |
53 { | 53 { |
54 } | 54 } |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 if (m_internal) | 284 if (m_internal) |
285 m_internal->close(); | 285 m_internal->close(); |
286 } | 286 } |
287 | 287 |
288 void SocketStreamHandle::trace(Visitor* visitor) | 288 void SocketStreamHandle::trace(Visitor* visitor) |
289 { | 289 { |
290 visitor->trace(m_client); | 290 visitor->trace(m_client); |
291 visitor->trace(m_internal); | 291 visitor->trace(m_internal); |
292 } | 292 } |
293 | 293 |
294 } // namespace WebCore | 294 } // namespace blink |
OLD | NEW |