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

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

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 years, 9 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 DEFINE_TRACE(WorkerWebSocketChannel) { 158 DEFINE_TRACE(WorkerWebSocketChannel) {
159 visitor->trace(m_bridge); 159 visitor->trace(m_bridge);
160 WebSocketChannel::trace(visitor); 160 WebSocketChannel::trace(visitor);
161 } 161 }
162 162
163 Peer::Peer(Bridge* bridge, 163 Peer::Peer(Bridge* bridge,
164 PassRefPtr<WorkerLoaderProxy> loaderProxy, 164 PassRefPtr<WorkerLoaderProxy> loaderProxy,
165 WorkerThreadLifecycleContext* workerThreadLifecycleContext) 165 WorkerThreadLifecycleContext* workerThreadLifecycleContext)
166 : WorkerThreadLifecycleObserver(workerThreadLifecycleContext), 166 : WorkerThreadLifecycleObserver(workerThreadLifecycleContext),
167 m_bridge(bridge), 167 m_bridge(bridge),
168 m_loaderProxy(loaderProxy), 168 m_loaderProxy(std::move(loaderProxy)),
169 m_mainWebSocketChannel(nullptr) { 169 m_mainWebSocketChannel(nullptr) {
170 DCHECK(isMainThread()); 170 DCHECK(isMainThread());
171 } 171 }
172 172
173 Peer::~Peer() { 173 Peer::~Peer() {
174 DCHECK(isMainThread()); 174 DCHECK(isMainThread());
175 } 175 }
176 176
177 bool Peer::initialize(std::unique_ptr<SourceLocation> location, 177 bool Peer::initialize(std::unique_ptr<SourceLocation> location,
178 ThreadableLoadingContext* loadingContext) { 178 ThreadableLoadingContext* loadingContext) {
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 m_peer = nullptr; 467 m_peer = nullptr;
468 m_workerGlobalScope.clear(); 468 m_workerGlobalScope.clear();
469 } 469 }
470 470
471 DEFINE_TRACE(Bridge) { 471 DEFINE_TRACE(Bridge) {
472 visitor->trace(m_client); 472 visitor->trace(m_client);
473 visitor->trace(m_workerGlobalScope); 473 visitor->trace(m_workerGlobalScope);
474 } 474 }
475 475
476 } // namespace blink 476 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698