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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 , m_secure(m_url.protocolIs("wss")) | 126 , m_secure(m_url.protocolIs("wss")) |
127 , m_document(document) | 127 , m_document(document) |
128 , m_mode(Incomplete) | 128 , m_mode(Incomplete) |
129 { | 129 { |
130 m_secWebSocketKey = generateSecWebSocketKey(); | 130 m_secWebSocketKey = generateSecWebSocketKey(); |
131 m_expectedAccept = getExpectedWebSocketAccept(m_secWebSocketKey); | 131 m_expectedAccept = getExpectedWebSocketAccept(m_secWebSocketKey); |
132 } | 132 } |
133 | 133 |
134 WebSocketHandshake::~WebSocketHandshake() | 134 WebSocketHandshake::~WebSocketHandshake() |
135 { | 135 { |
136 blink::Platform::current()->histogramEnumeration("WebCore.WebSocket.Handshak
eResult", m_mode, WebSocketHandshake::ModeMax); | 136 Platform::current()->histogramEnumeration("WebCore.WebSocket.HandshakeResult
", m_mode, WebSocketHandshake::ModeMax); |
137 } | 137 } |
138 | 138 |
139 const KURL& WebSocketHandshake::url() const | 139 const KURL& WebSocketHandshake::url() const |
140 { | 140 { |
141 return m_url; | 141 return m_url; |
142 } | 142 } |
143 | 143 |
144 void WebSocketHandshake::setURL(const KURL& url) | 144 void WebSocketHandshake::setURL(const KURL& url) |
145 { | 145 { |
146 m_url = url.copy(); | 146 m_url = url.copy(); |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 blink | 553 } // namespace blink |
OLD | NEW |