OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 3 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "modules/websockets/WebSocket.h" | 34 #include "modules/websockets/WebSocket.h" |
35 #include "modules/websockets/WebSocketHandshake.h" | 35 #include "modules/websockets/WebSocketHandshake.h" |
36 | 36 |
37 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
38 #include "core/dom/ScriptExecutionContext.h" | 38 #include "core/dom/ScriptExecutionContext.h" |
39 #include "core/inspector/ScriptCallStack.h" | 39 #include "core/inspector/ScriptCallStack.h" |
40 #include "core/loader/CookieJar.h" | 40 #include "core/loader/CookieJar.h" |
41 #include "core/platform/Cookie.h" | 41 #include "core/platform/Cookie.h" |
42 #include "core/platform/HistogramSupport.h" | 42 #include "core/platform/HistogramSupport.h" |
43 #include "core/platform/Logging.h" | 43 #include "platform/Logging.h" |
44 #include "core/platform/network/HTTPHeaderMap.h" | 44 #include "core/platform/network/HTTPHeaderMap.h" |
45 #include "core/platform/network/HTTPParsers.h" | 45 #include "core/platform/network/HTTPParsers.h" |
46 #include "weborigin/KURL.h" | 46 #include "weborigin/KURL.h" |
47 #include "weborigin/SecurityOrigin.h" | 47 #include "weborigin/SecurityOrigin.h" |
48 #include "wtf/CryptographicallyRandomNumber.h" | 48 #include "wtf/CryptographicallyRandomNumber.h" |
49 #include "wtf/SHA1.h" | 49 #include "wtf/SHA1.h" |
50 #include "wtf/StdLibExtras.h" | 50 #include "wtf/StdLibExtras.h" |
51 #include "wtf/StringExtras.h" | 51 #include "wtf/StringExtras.h" |
52 #include "wtf/Vector.h" | 52 #include "wtf/Vector.h" |
53 #include "wtf/text/Base64.h" | 53 #include "wtf/text/Base64.h" |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 return false; | 549 return false; |
550 } | 550 } |
551 } else if (!m_clientProtocol.isEmpty()) { | 551 } else if (!m_clientProtocol.isEmpty()) { |
552 m_failureReason = "Error during WebSocket handshake: Sec-WebSocket-Proto
col mismatch"; | 552 m_failureReason = "Error during WebSocket handshake: Sec-WebSocket-Proto
col mismatch"; |
553 return false; | 553 return false; |
554 } | 554 } |
555 return true; | 555 return true; |
556 } | 556 } |
557 | 557 |
558 } // namespace WebCore | 558 } // namespace WebCore |
OLD | NEW |