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

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

Issue 25195003: Prepare to move core/platform/text into blink_platform.dll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: re-attempt upload Created 7 years, 2 months 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
« no previous file with comments | « Source/modules/websockets/WebSocketDeflater.cpp ('k') | Source/platform/DateComponents.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 22 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « Source/modules/websockets/WebSocketDeflater.cpp ('k') | Source/platform/DateComponents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698