| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 25 matching lines...) Expand all Loading... |
| 36 #include "bindings/v8/ExceptionState.h" | 36 #include "bindings/v8/ExceptionState.h" |
| 37 #include "bindings/v8/ScriptController.h" | 37 #include "bindings/v8/ScriptController.h" |
| 38 #include "core/dom/Document.h" | 38 #include "core/dom/Document.h" |
| 39 #include "core/dom/ExceptionCode.h" | 39 #include "core/dom/ExceptionCode.h" |
| 40 #include "core/dom/ExecutionContext.h" | 40 #include "core/dom/ExecutionContext.h" |
| 41 #include "core/events/Event.h" | 41 #include "core/events/Event.h" |
| 42 #include "core/events/EventListener.h" | 42 #include "core/events/EventListener.h" |
| 43 #include "core/events/MessageEvent.h" | 43 #include "core/events/MessageEvent.h" |
| 44 #include "core/events/ThreadLocalEventNames.h" | 44 #include "core/events/ThreadLocalEventNames.h" |
| 45 #include "core/fileapi/Blob.h" | 45 #include "core/fileapi/Blob.h" |
| 46 #include "core/inspector/ScriptCallStack.h" | |
| 47 #include "core/frame/ConsoleTypes.h" | 46 #include "core/frame/ConsoleTypes.h" |
| 48 #include "core/frame/ContentSecurityPolicy.h" | 47 #include "core/frame/ContentSecurityPolicy.h" |
| 49 #include "core/frame/DOMWindow.h" | 48 #include "core/frame/DOMWindow.h" |
| 50 #include "core/frame/Frame.h" | 49 #include "core/frame/Frame.h" |
| 51 #include "core/platform/network/BlobData.h" | 50 #include "core/inspector/ScriptCallStack.h" |
| 52 #include "modules/websockets/CloseEvent.h" | 51 #include "modules/websockets/CloseEvent.h" |
| 53 #include "modules/websockets/WebSocketChannel.h" | 52 #include "modules/websockets/WebSocketChannel.h" |
| 54 #include "platform/Logging.h" | 53 #include "platform/Logging.h" |
| 54 #include "platform/blob/BlobData.h" |
| 55 #include "weborigin/KnownPorts.h" | 55 #include "weborigin/KnownPorts.h" |
| 56 #include "weborigin/SecurityOrigin.h" | 56 #include "weborigin/SecurityOrigin.h" |
| 57 #include "wtf/ArrayBuffer.h" | 57 #include "wtf/ArrayBuffer.h" |
| 58 #include "wtf/ArrayBufferView.h" | 58 #include "wtf/ArrayBufferView.h" |
| 59 #include "wtf/HashSet.h" | 59 #include "wtf/HashSet.h" |
| 60 #include "wtf/OwnPtr.h" | 60 #include "wtf/OwnPtr.h" |
| 61 #include "wtf/PassOwnPtr.h" | 61 #include "wtf/PassOwnPtr.h" |
| 62 #include "wtf/StdLibExtras.h" | 62 #include "wtf/StdLibExtras.h" |
| 63 #include "wtf/text/CString.h" | 63 #include "wtf/text/CString.h" |
| 64 #include "wtf/text/StringBuilder.h" | 64 #include "wtf/text/StringBuilder.h" |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 static const size_t minimumPayloadSizeWithEightByteExtendedPayloadLength = 0
x10000; | 618 static const size_t minimumPayloadSizeWithEightByteExtendedPayloadLength = 0
x10000; |
| 619 size_t overhead = hybiBaseFramingOverhead + hybiMaskingKeyLength; | 619 size_t overhead = hybiBaseFramingOverhead + hybiMaskingKeyLength; |
| 620 if (payloadSize >= minimumPayloadSizeWithEightByteExtendedPayloadLength) | 620 if (payloadSize >= minimumPayloadSizeWithEightByteExtendedPayloadLength) |
| 621 overhead += 8; | 621 overhead += 8; |
| 622 else if (payloadSize >= minimumPayloadSizeWithTwoByteExtendedPayloadLength) | 622 else if (payloadSize >= minimumPayloadSizeWithTwoByteExtendedPayloadLength) |
| 623 overhead += 2; | 623 overhead += 2; |
| 624 return overhead; | 624 return overhead; |
| 625 } | 625 } |
| 626 | 626 |
| 627 } // namespace WebCore | 627 } // namespace WebCore |
| OLD | NEW |