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

Side by Side Diff: Source/modules/websockets/WebSocket.cpp

Issue 54053006: Move weborigin/ under platform/ so that it may someday call platform APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 /* 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "core/fileapi/Blob.h" 45 #include "core/fileapi/Blob.h"
46 #include "core/frame/ConsoleTypes.h" 46 #include "core/frame/ConsoleTypes.h"
47 #include "core/frame/ContentSecurityPolicy.h" 47 #include "core/frame/ContentSecurityPolicy.h"
48 #include "core/frame/DOMWindow.h" 48 #include "core/frame/DOMWindow.h"
49 #include "core/frame/Frame.h" 49 #include "core/frame/Frame.h"
50 #include "core/inspector/ScriptCallStack.h" 50 #include "core/inspector/ScriptCallStack.h"
51 #include "modules/websockets/CloseEvent.h" 51 #include "modules/websockets/CloseEvent.h"
52 #include "modules/websockets/WebSocketChannel.h" 52 #include "modules/websockets/WebSocketChannel.h"
53 #include "platform/Logging.h" 53 #include "platform/Logging.h"
54 #include "platform/blob/BlobData.h" 54 #include "platform/blob/BlobData.h"
55 #include "weborigin/KnownPorts.h" 55 #include "platform/weborigin/KnownPorts.h"
56 #include "weborigin/SecurityOrigin.h" 56 #include "platform/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/Deque.h" 59 #include "wtf/Deque.h"
60 #include "wtf/HashSet.h" 60 #include "wtf/HashSet.h"
61 #include "wtf/OwnPtr.h" 61 #include "wtf/OwnPtr.h"
62 #include "wtf/PassOwnPtr.h" 62 #include "wtf/PassOwnPtr.h"
63 #include "wtf/StdLibExtras.h" 63 #include "wtf/StdLibExtras.h"
64 #include "wtf/text/CString.h" 64 #include "wtf/text/CString.h"
65 #include "wtf/text/StringBuilder.h" 65 #include "wtf/text/StringBuilder.h"
66 #include "wtf/text/WTFString.h" 66 #include "wtf/text/WTFString.h"
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 static const size_t minimumPayloadSizeWithEightByteExtendedPayloadLength = 0 x10000; 679 static const size_t minimumPayloadSizeWithEightByteExtendedPayloadLength = 0 x10000;
680 size_t overhead = hybiBaseFramingOverhead + hybiMaskingKeyLength; 680 size_t overhead = hybiBaseFramingOverhead + hybiMaskingKeyLength;
681 if (payloadSize >= minimumPayloadSizeWithEightByteExtendedPayloadLength) 681 if (payloadSize >= minimumPayloadSizeWithEightByteExtendedPayloadLength)
682 overhead += 8; 682 overhead += 8;
683 else if (payloadSize >= minimumPayloadSizeWithTwoByteExtendedPayloadLength) 683 else if (payloadSize >= minimumPayloadSizeWithTwoByteExtendedPayloadLength)
684 overhead += 2; 684 overhead += 2;
685 return overhead; 685 return overhead;
686 } 686 }
687 687
688 } // namespace WebCore 688 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698