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

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

Issue 68093002: Remove duplicated headers from modules/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
OLDNEW
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 25 matching lines...) Expand all
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 "public/platform/Platform.h" 45 #include "public/platform/Platform.h"
46 #include "weborigin/KURL.h"
47 #include "weborigin/SecurityOrigin.h" 46 #include "weborigin/SecurityOrigin.h"
48 #include "wtf/CryptographicallyRandomNumber.h" 47 #include "wtf/CryptographicallyRandomNumber.h"
49 #include "wtf/SHA1.h" 48 #include "wtf/SHA1.h"
50 #include "wtf/StdLibExtras.h" 49 #include "wtf/StdLibExtras.h"
51 #include "wtf/StringExtras.h" 50 #include "wtf/StringExtras.h"
52 #include "wtf/Vector.h" 51 #include "wtf/Vector.h"
53 #include "wtf/text/Base64.h" 52 #include "wtf/text/Base64.h"
54 #include "wtf/text/CString.h" 53 #include "wtf/text/CString.h"
55 #include "wtf/text/StringBuilder.h" 54 #include "wtf/text/StringBuilder.h"
56 #include "wtf/text/WTFString.h"
57 #include "wtf/unicode/CharacterNames.h" 55 #include "wtf/unicode/CharacterNames.h"
58 56
59 namespace WebCore { 57 namespace WebCore {
60 58
61 namespace { 59 namespace {
62 60
63 // FIXME: The spec says that the Sec-WebSocket-Protocol header in a handshake 61 // FIXME: The spec says that the Sec-WebSocket-Protocol header in a handshake
64 // response can't be null if the header in a request is not null. 62 // response can't be null if the header in a request is not null.
65 // Some servers are not accustomed to the shutdown, 63 // Some servers are not accustomed to the shutdown,
66 // so we provide an adhoc white-list for it tentatively. 64 // so we provide an adhoc white-list for it tentatively.
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 } 581 }
584 if (!match) { 582 if (!match) {
585 m_failureReason = formatHandshakeFailureReason("Sent non-empty 'Sec- WebSocket-Protocol' header but no response is received"); 583 m_failureReason = formatHandshakeFailureReason("Sent non-empty 'Sec- WebSocket-Protocol' header but no response is received");
586 return false; 584 return false;
587 } 585 }
588 } 586 }
589 return true; 587 return true;
590 } 588 }
591 589
592 } // namespace WebCore 590 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/websockets/WebSocketChannel.cpp ('k') | Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698