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

Side by Side Diff: Source/web/WebSocketImpl.cpp

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/web/WebSocketImpl.h ('k') | Source/web/WebSpeechGrammar.cpp » ('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, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 27 matching lines...) Expand all
38 #include "modules/websockets/WebSocketChannel.h" 38 #include "modules/websockets/WebSocketChannel.h"
39 #include "platform/RuntimeEnabledFeatures.h" 39 #include "platform/RuntimeEnabledFeatures.h"
40 #include "public/platform/WebArrayBuffer.h" 40 #include "public/platform/WebArrayBuffer.h"
41 #include "public/platform/WebString.h" 41 #include "public/platform/WebString.h"
42 #include "public/platform/WebURL.h" 42 #include "public/platform/WebURL.h"
43 #include "public/web/WebDocument.h" 43 #include "public/web/WebDocument.h"
44 #include "wtf/ArrayBuffer.h" 44 #include "wtf/ArrayBuffer.h"
45 #include "wtf/text/CString.h" 45 #include "wtf/text/CString.h"
46 #include "wtf/text/WTFString.h" 46 #include "wtf/text/WTFString.h"
47 47
48 using namespace WebCore; 48 using namespace blink;
49 49
50 namespace blink { 50 namespace blink {
51 51
52 WebSocketImpl::WebSocketImpl(const WebDocument& document, WebSocketClient* clien t) 52 WebSocketImpl::WebSocketImpl(const WebDocument& document, WebSocketClient* clien t)
53 : m_client(client) 53 : m_client(client)
54 , m_binaryType(BinaryTypeBlob) 54 , m_binaryType(BinaryTypeBlob)
55 , m_isClosingOrClosed(false) 55 , m_isClosingOrClosed(false)
56 , m_bufferedAmount(0) 56 , m_bufferedAmount(0)
57 , m_bufferedAmountAfterClose(0) 57 , m_bufferedAmountAfterClose(0)
58 { 58 {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 void WebSocketImpl::didClose(ClosingHandshakeCompletionStatus status, unsigned s hort code, const String& reason) 202 void WebSocketImpl::didClose(ClosingHandshakeCompletionStatus status, unsigned s hort code, const String& reason)
203 { 203 {
204 m_isClosingOrClosed = true; 204 m_isClosingOrClosed = true;
205 m_client->didClose(static_cast<WebSocketClient::ClosingHandshakeCompletionSt atus>(status), code, WebString(reason)); 205 m_client->didClose(static_cast<WebSocketClient::ClosingHandshakeCompletionSt atus>(status), code, WebString(reason));
206 206
207 // FIXME: Deprecate this call. 207 // FIXME: Deprecate this call.
208 m_client->didClose(m_bufferedAmount - m_bufferedAmountAfterClose, static_cas t<WebSocketClient::ClosingHandshakeCompletionStatus>(status), code, WebString(re ason)); 208 m_client->didClose(m_bufferedAmount - m_bufferedAmountAfterClose, static_cas t<WebSocketClient::ClosingHandshakeCompletionStatus>(status), code, WebString(re ason));
209 } 209 }
210 210
211 void WebSocketImpl::trace(WebCore::Visitor* visitor) 211 void WebSocketImpl::trace(blink::Visitor* visitor)
212 { 212 {
213 visitor->trace(m_private); 213 visitor->trace(m_private);
214 WebCore::WebSocketChannelClient::trace(visitor); 214 blink::WebSocketChannelClient::trace(visitor);
215 } 215 }
216 216
217 } // namespace blink 217 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebSocketImpl.h ('k') | Source/web/WebSpeechGrammar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698