| OLD | NEW |
| 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 Loading... |
| 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 | |
| 207 void WebSharedWorkerImpl::sendProtocolMessage(int sessionId, int callId, const W
ebString& message, const WebString& state) | 202 void WebSharedWorkerImpl::sendProtocolMessage(int sessionId, int callId, const W
ebString& message, const WebString& state) |
| 208 { | 203 { |
| 209 m_client->sendDevToolsMessage(sessionId, callId, message, state); | 204 m_client->sendDevToolsMessage(sessionId, callId, message, state); |
| 210 } | 205 } |
| 211 | 206 |
| 212 void WebSharedWorkerImpl::resumeStartup() | 207 void WebSharedWorkerImpl::resumeStartup() |
| 213 { | 208 { |
| 214 bool isPausedOnStart = m_isPausedOnStart; | 209 bool isPausedOnStart = m_isPausedOnStart; |
| 215 m_isPausedOnStart = false; | 210 m_isPausedOnStart = false; |
| 216 if (isPausedOnStart) | 211 if (isPausedOnStart) |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 if (devtoolsAgent) | 410 if (devtoolsAgent) |
| 416 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, mes
sage); | 411 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, mes
sage); |
| 417 } | 412 } |
| 418 | 413 |
| 419 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) | 414 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) |
| 420 { | 415 { |
| 421 return new WebSharedWorkerImpl(client); | 416 return new WebSharedWorkerImpl(client); |
| 422 } | 417 } |
| 423 | 418 |
| 424 } // namespace blink | 419 } // namespace blink |
| OLD | NEW |