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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "public/platform/Platform.h" | 46 #include "public/platform/Platform.h" |
47 #include "wtf/CryptographicallyRandomNumber.h" | 47 #include "wtf/CryptographicallyRandomNumber.h" |
48 #include "wtf/StdLibExtras.h" | 48 #include "wtf/StdLibExtras.h" |
49 #include "wtf/StringExtras.h" | 49 #include "wtf/StringExtras.h" |
50 #include "wtf/Vector.h" | 50 #include "wtf/Vector.h" |
51 #include "wtf/text/Base64.h" | 51 #include "wtf/text/Base64.h" |
52 #include "wtf/text/CString.h" | 52 #include "wtf/text/CString.h" |
53 #include "wtf/text/StringBuilder.h" | 53 #include "wtf/text/StringBuilder.h" |
54 #include "wtf/unicode/CharacterNames.h" | 54 #include "wtf/unicode/CharacterNames.h" |
55 | 55 |
56 namespace WebCore { | 56 namespace blink { |
57 | 57 |
58 String formatHandshakeFailureReason(const String& detail) | 58 String formatHandshakeFailureReason(const String& detail) |
59 { | 59 { |
60 return "Error during WebSocket handshake: " + detail; | 60 return "Error during WebSocket handshake: " + detail; |
61 } | 61 } |
62 | 62 |
63 static String resourceName(const KURL& url) | 63 static String resourceName(const KURL& url) |
64 { | 64 { |
65 StringBuilder name; | 65 StringBuilder name; |
66 name.append(url.path()); | 66 name.append(url.path()); |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 return false; | 543 return false; |
544 } | 544 } |
545 return true; | 545 return true; |
546 } | 546 } |
547 | 547 |
548 void WebSocketHandshake::trace(Visitor* visitor) | 548 void WebSocketHandshake::trace(Visitor* visitor) |
549 { | 549 { |
550 visitor->trace(m_document); | 550 visitor->trace(m_document); |
551 } | 551 } |
552 | 552 |
553 } // namespace WebCore | 553 } // namespace blink |
OLD | NEW |