| 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 24 matching lines...) Expand all  Loading... | 
| 35 | 35 | 
| 36 #include "core/dom/Document.h" | 36 #include "core/dom/Document.h" | 
| 37 #include "core/dom/ExecutionContext.h" | 37 #include "core/dom/ExecutionContext.h" | 
| 38 #include "core/inspector/ScriptCallStack.h" | 38 #include "core/inspector/ScriptCallStack.h" | 
| 39 #include "core/loader/CookieJar.h" | 39 #include "core/loader/CookieJar.h" | 
| 40 #include "modules/websockets/WebSocket.h" | 40 #include "modules/websockets/WebSocket.h" | 
| 41 #include "platform/Cookie.h" | 41 #include "platform/Cookie.h" | 
| 42 #include "platform/Logging.h" | 42 #include "platform/Logging.h" | 
| 43 #include "platform/network/HTTPHeaderMap.h" | 43 #include "platform/network/HTTPHeaderMap.h" | 
| 44 #include "platform/network/HTTPParsers.h" | 44 #include "platform/network/HTTPParsers.h" | 
|  | 45 #include "platform/weborigin/KURL.h" | 
|  | 46 #include "platform/weborigin/SecurityOrigin.h" | 
| 45 #include "public/platform/Platform.h" | 47 #include "public/platform/Platform.h" | 
| 46 #include "weborigin/SecurityOrigin.h" |  | 
| 47 #include "wtf/CryptographicallyRandomNumber.h" | 48 #include "wtf/CryptographicallyRandomNumber.h" | 
| 48 #include "wtf/SHA1.h" | 49 #include "wtf/SHA1.h" | 
| 49 #include "wtf/StdLibExtras.h" | 50 #include "wtf/StdLibExtras.h" | 
| 50 #include "wtf/StringExtras.h" | 51 #include "wtf/StringExtras.h" | 
| 51 #include "wtf/Vector.h" | 52 #include "wtf/Vector.h" | 
| 52 #include "wtf/text/Base64.h" | 53 #include "wtf/text/Base64.h" | 
| 53 #include "wtf/text/CString.h" | 54 #include "wtf/text/CString.h" | 
| 54 #include "wtf/text/StringBuilder.h" | 55 #include "wtf/text/StringBuilder.h" | 
| 55 #include "wtf/unicode/CharacterNames.h" | 56 #include "wtf/unicode/CharacterNames.h" | 
| 56 | 57 | 
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 581         } | 582         } | 
| 582         if (!match) { | 583         if (!match) { | 
| 583             m_failureReason = formatHandshakeFailureReason("Sent non-empty 'Sec-
     WebSocket-Protocol' header but no response is received"); | 584             m_failureReason = formatHandshakeFailureReason("Sent non-empty 'Sec-
     WebSocket-Protocol' header but no response is received"); | 
| 584             return false; | 585             return false; | 
| 585         } | 586         } | 
| 586     } | 587     } | 
| 587     return true; | 588     return true; | 
| 588 } | 589 } | 
| 589 | 590 | 
| 590 } // namespace WebCore | 591 } // namespace WebCore | 
| OLD | NEW | 
|---|