| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 webFrame->frame()->loader()->load(FrameLoadRequest(0, ResourceRequest(url),
SubstituteData(buffer, "text/html", "UTF-8", KURL()))); | 141 webFrame->frame()->loader()->load(FrameLoadRequest(0, ResourceRequest(url),
SubstituteData(buffer, "text/html", "UTF-8", KURL()))); |
| 142 | 142 |
| 143 // This document will be used as 'loading context' for the worker. | 143 // This document will be used as 'loading context' for the worker. |
| 144 m_loadingDocument = webFrame->frame()->document(); | 144 m_loadingDocument = webFrame->frame()->document(); |
| 145 } | 145 } |
| 146 | 146 |
| 147 void WebSharedWorkerImpl::didCreateDataSource(WebFrame*, WebDataSource* ds) | 147 void WebSharedWorkerImpl::didCreateDataSource(WebFrame*, WebDataSource* ds) |
| 148 { | 148 { |
| 149 // Tell the loader to load the data into the 'shadow page' synchronously, | 149 // Tell the loader to load the data into the 'shadow page' synchronously, |
| 150 // so we can grab the resulting Document right after load. | 150 // so we can grab the resulting Document right after load. |
| 151 static_cast<WebDataSourceImpl*>(ds)->setDeferMainResourceDataLoad(false); | 151 toWebDataSourceImpl(ds)->setDeferMainResourceDataLoad(false); |
| 152 } | 152 } |
| 153 | 153 |
| 154 WebApplicationCacheHost* WebSharedWorkerImpl::createApplicationCacheHost(WebFram
e*, WebApplicationCacheHostClient* appcacheHostClient) | 154 WebApplicationCacheHost* WebSharedWorkerImpl::createApplicationCacheHost(WebFram
e*, WebApplicationCacheHostClient* appcacheHostClient) |
| 155 { | 155 { |
| 156 if (client()) | 156 if (client()) |
| 157 return client()->createApplicationCacheHost(appcacheHostClient); | 157 return client()->createApplicationCacheHost(appcacheHostClient); |
| 158 return 0; | 158 return 0; |
| 159 } | 159 } |
| 160 | 160 |
| 161 // WorkerObjectProxy ----------------------------------------------------------- | 161 // WorkerObjectProxy ----------------------------------------------------------- |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 workerThread()->runLoop().postTaskForMode(createCallbackTask(dispatchOnInspe
ctorBackendTask, String(message)), WorkerDebuggerAgent::debuggerTaskMode); | 442 workerThread()->runLoop().postTaskForMode(createCallbackTask(dispatchOnInspe
ctorBackendTask, String(message)), WorkerDebuggerAgent::debuggerTaskMode); |
| 443 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(workerThread()); | 443 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(workerThread()); |
| 444 } | 444 } |
| 445 | 445 |
| 446 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) | 446 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) |
| 447 { | 447 { |
| 448 return new WebSharedWorkerImpl(client); | 448 return new WebSharedWorkerImpl(client); |
| 449 } | 449 } |
| 450 | 450 |
| 451 } // namespace WebKit | 451 } // namespace WebKit |
| OLD | NEW |