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

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

Issue 469773002: Cleanup blink:: prefix usage in Source/core/modules/[mediasource/*.cpp to websockets/*.cpp] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/modules/websockets/NewWebSocketChannelImplTest.cpp ('k') | Source/modules/websockets/WebSocketPerMessageDeflate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698