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

Side by Side Diff: third_party/WebKit/Source/modules/websockets/WorkerWebSocketChannel.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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, 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 12 matching lines...) Expand all
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "modules/websockets/WorkerWebSocketChannel.h" 31 #include "modules/websockets/WorkerWebSocketChannel.h"
32 32
33 #include <memory>
33 #include "core/dom/DOMArrayBuffer.h" 34 #include "core/dom/DOMArrayBuffer.h"
34 #include "core/dom/Document.h" 35 #include "core/dom/Document.h"
35 #include "core/dom/ExecutionContext.h" 36 #include "core/dom/ExecutionContext.h"
36 #include "core/dom/ExecutionContextTask.h" 37 #include "core/dom/ExecutionContextTask.h"
37 #include "core/fileapi/Blob.h" 38 #include "core/fileapi/Blob.h"
38 #include "core/workers/WorkerGlobalScope.h" 39 #include "core/workers/WorkerGlobalScope.h"
39 #include "core/workers/WorkerLoaderProxy.h" 40 #include "core/workers/WorkerLoaderProxy.h"
40 #include "core/workers/WorkerThread.h" 41 #include "core/workers/WorkerThread.h"
41 #include "modules/websockets/DocumentWebSocketChannel.h" 42 #include "modules/websockets/DocumentWebSocketChannel.h"
42 #include "platform/WaitableEvent.h" 43 #include "platform/WaitableEvent.h"
43 #include "platform/heap/SafePoint.h" 44 #include "platform/heap/SafePoint.h"
44 #include "public/platform/Platform.h" 45 #include "public/platform/Platform.h"
45 #include "wtf/Assertions.h" 46 #include "wtf/Assertions.h"
46 #include "wtf/Functional.h" 47 #include "wtf/Functional.h"
47 #include "wtf/PtrUtil.h" 48 #include "wtf/PtrUtil.h"
48 #include "wtf/text/CString.h" 49 #include "wtf/text/CString.h"
49 #include "wtf/text/WTFString.h" 50 #include "wtf/text/WTFString.h"
50 #include <memory>
51 51
52 namespace blink { 52 namespace blink {
53 53
54 typedef WorkerWebSocketChannel::Bridge Bridge; 54 typedef WorkerWebSocketChannel::Bridge Bridge;
55 typedef WorkerWebSocketChannel::Peer Peer; 55 typedef WorkerWebSocketChannel::Peer Peer;
56 56
57 // Created and destroyed on the worker thread. All setters of this class are 57 // Created and destroyed on the worker thread. All setters of this class are
58 // called on the main thread, while all getters are called on the worker 58 // called on the main thread, while all getters are called on the worker
59 // thread. signalWorkerThread() must be called before any getters are called. 59 // thread. signalWorkerThread() must be called before any getters are called.
60 class WebSocketChannelSyncHelper { 60 class WebSocketChannelSyncHelper {
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 m_peer = nullptr; 464 m_peer = nullptr;
465 m_workerGlobalScope.clear(); 465 m_workerGlobalScope.clear();
466 } 466 }
467 467
468 DEFINE_TRACE(Bridge) { 468 DEFINE_TRACE(Bridge) {
469 visitor->trace(m_client); 469 visitor->trace(m_client);
470 visitor->trace(m_workerGlobalScope); 470 visitor->trace(m_workerGlobalScope);
471 } 471 }
472 472
473 } // namespace blink 473 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698