| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 return m_networkProvider && m_networkProvider->isControlledByServiceWorker(d
ataSource); | 193 return m_networkProvider && m_networkProvider->isControlledByServiceWorker(d
ataSource); |
| 194 } | 194 } |
| 195 | 195 |
| 196 int64_t WebSharedWorkerImpl::serviceWorkerID(WebDataSource& dataSource) | 196 int64_t WebSharedWorkerImpl::serviceWorkerID(WebDataSource& dataSource) |
| 197 { | 197 { |
| 198 if (!m_networkProvider) | 198 if (!m_networkProvider) |
| 199 return -1; | 199 return -1; |
| 200 return m_networkProvider->serviceWorkerID(dataSource); | 200 return m_networkProvider->serviceWorkerID(dataSource); |
| 201 } | 201 } |
| 202 | 202 |
| 203 InterfaceProvider* WebSharedWorkerImpl::interfaceProvider() |
| 204 { |
| 205 return Platform::current()->interfaceProvider(); |
| 206 } |
| 207 |
| 203 void WebSharedWorkerImpl::sendProtocolMessage(int sessionId, int callId, const W
ebString& message, const WebString& state) | 208 void WebSharedWorkerImpl::sendProtocolMessage(int sessionId, int callId, const W
ebString& message, const WebString& state) |
| 204 { | 209 { |
| 205 m_client->sendDevToolsMessage(sessionId, callId, message, state); | 210 m_client->sendDevToolsMessage(sessionId, callId, message, state); |
| 206 } | 211 } |
| 207 | 212 |
| 208 void WebSharedWorkerImpl::resumeStartup() | 213 void WebSharedWorkerImpl::resumeStartup() |
| 209 { | 214 { |
| 210 bool isPausedOnStart = m_isPausedOnStart; | 215 bool isPausedOnStart = m_isPausedOnStart; |
| 211 m_isPausedOnStart = false; | 216 m_isPausedOnStart = false; |
| 212 if (isPausedOnStart) | 217 if (isPausedOnStart) |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 if (devtoolsAgent) | 417 if (devtoolsAgent) |
| 413 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, mes
sage); | 418 devtoolsAgent->dispatchOnInspectorBackend(sessionId, callId, method, mes
sage); |
| 414 } | 419 } |
| 415 | 420 |
| 416 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) | 421 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) |
| 417 { | 422 { |
| 418 return new WebSharedWorkerImpl(client); | 423 return new WebSharedWorkerImpl(client); |
| 419 } | 424 } |
| 420 | 425 |
| 421 } // namespace blink | 426 } // namespace blink |
| OLD | NEW |