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

Side by Side Diff: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp

Issue 1851293002: Remove BLINK_ASSERT() and BLINK_ASSERT_NOT_REACHED() macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gn compilation. Created 4 years, 8 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 return m_networkProvider && m_networkProvider->isControlledByServiceWorker(d ataSource); 190 return m_networkProvider && m_networkProvider->isControlledByServiceWorker(d ataSource);
191 } 191 }
192 192
193 int64_t WebSharedWorkerImpl::serviceWorkerID(WebDataSource& dataSource) 193 int64_t WebSharedWorkerImpl::serviceWorkerID(WebDataSource& dataSource)
194 { 194 {
195 if (!m_networkProvider) 195 if (!m_networkProvider)
196 return -1; 196 return -1;
197 return m_networkProvider->serviceWorkerID(dataSource); 197 return m_networkProvider->serviceWorkerID(dataSource);
198 } 198 }
199 199
200 void WebSharedWorkerImpl::checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId, const WebSecurityOrigin&, WebSetSinkIdCallbacks*)
201 {
202 NOTREACHED();
203 }
204
200 void WebSharedWorkerImpl::sendProtocolMessage(int sessionId, int callId, const W ebString& message, const WebString& state) 205 void WebSharedWorkerImpl::sendProtocolMessage(int sessionId, int callId, const W ebString& message, const WebString& state)
201 { 206 {
202 m_client->sendDevToolsMessage(sessionId, callId, message, state); 207 m_client->sendDevToolsMessage(sessionId, callId, message, state);
203 } 208 }
204 209
205 void WebSharedWorkerImpl::resumeStartup() 210 void WebSharedWorkerImpl::resumeStartup()
206 { 211 {
207 bool isPausedOnStart = m_isPausedOnStart; 212 bool isPausedOnStart = m_isPausedOnStart;
208 m_isPausedOnStart = false; 213 m_isPausedOnStart = false;
209 if (isPausedOnStart) 214 if (isPausedOnStart)
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 if (devtoolsAgent) 394 if (devtoolsAgent)
390 devtoolsAgent->dispatchOnInspectorBackend(sessionId, message); 395 devtoolsAgent->dispatchOnInspectorBackend(sessionId, message);
391 } 396 }
392 397
393 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) 398 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client)
394 { 399 {
395 return new WebSharedWorkerImpl(client); 400 return new WebSharedWorkerImpl(client);
396 } 401 }
397 402
398 } // namespace blink 403 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698