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

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

Issue 2284473002: Move WebSocketHandleImpl into Blink (take 2) (Closed)
Patch Set: Rebase Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/web/WebSharedWorkerImpl.h ('k') | third_party/WebKit/public/BUILD.gn » ('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) 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 return m_networkProvider && m_networkProvider->isControlledByServiceWorker(d ataSource); 192 return m_networkProvider && m_networkProvider->isControlledByServiceWorker(d ataSource);
193 } 193 }
194 194
195 int64_t WebSharedWorkerImpl::serviceWorkerID(WebDataSource& dataSource) 195 int64_t WebSharedWorkerImpl::serviceWorkerID(WebDataSource& dataSource)
196 { 196 {
197 if (!m_networkProvider) 197 if (!m_networkProvider)
198 return -1; 198 return -1;
199 return m_networkProvider->serviceWorkerID(dataSource); 199 return m_networkProvider->serviceWorkerID(dataSource);
200 } 200 }
201 201
202 InterfaceProvider* WebSharedWorkerImpl::interfaceProvider()
203 {
204 return Platform::current()->interfaceProvider();
205 }
206
202 void WebSharedWorkerImpl::sendProtocolMessage(int sessionId, int callId, const W ebString& message, const WebString& state) 207 void WebSharedWorkerImpl::sendProtocolMessage(int sessionId, int callId, const W ebString& message, const WebString& state)
203 { 208 {
204 m_client->sendDevToolsMessage(sessionId, callId, message, state); 209 m_client->sendDevToolsMessage(sessionId, callId, message, state);
205 } 210 }
206 211
207 void WebSharedWorkerImpl::resumeStartup() 212 void WebSharedWorkerImpl::resumeStartup()
208 { 213 {
209 bool isPausedOnStart = m_isPausedOnStart; 214 bool isPausedOnStart = m_isPausedOnStart;
210 m_isPausedOnStart = false; 215 m_isPausedOnStart = false;
211 if (isPausedOnStart) 216 if (isPausedOnStart)
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 if (devtoolsAgent) 415 if (devtoolsAgent)
411 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, mes sage); 416 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, mes sage);
412 } 417 }
413 418
414 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) 419 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client)
415 { 420 {
416 return new WebSharedWorkerImpl(client); 421 return new WebSharedWorkerImpl(client);
417 } 422 }
418 423
419 } // namespace blink 424 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebSharedWorkerImpl.h ('k') | third_party/WebKit/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698