| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #include "core/page/PageGroup.h" | 59 #include "core/page/PageGroup.h" |
| 60 #include "core/workers/SharedWorkerGlobalScope.h" | 60 #include "core/workers/SharedWorkerGlobalScope.h" |
| 61 #include "core/workers/SharedWorkerThread.h" | 61 #include "core/workers/SharedWorkerThread.h" |
| 62 #include "core/workers/WorkerClients.h" | 62 #include "core/workers/WorkerClients.h" |
| 63 #include "core/workers/WorkerGlobalScope.h" | 63 #include "core/workers/WorkerGlobalScope.h" |
| 64 #include "core/workers/WorkerLoaderProxy.h" | 64 #include "core/workers/WorkerLoaderProxy.h" |
| 65 #include "core/workers/WorkerThread.h" | 65 #include "core/workers/WorkerThread.h" |
| 66 #include "core/workers/WorkerThreadStartupData.h" | 66 #include "core/workers/WorkerThreadStartupData.h" |
| 67 #include "modules/webdatabase/DatabaseTask.h" | 67 #include "modules/webdatabase/DatabaseTask.h" |
| 68 #include "public/web/WebWorkerPermissionClientProxy.h" | 68 #include "public/web/WebWorkerPermissionClientProxy.h" |
| 69 #include "weborigin/KURL.h" | 69 #include "platform/weborigin/KURL.h" |
| 70 #include "weborigin/SecurityOrigin.h" | 70 #include "platform/weborigin/SecurityOrigin.h" |
| 71 #include "wtf/Functional.h" | 71 #include "wtf/Functional.h" |
| 72 | 72 |
| 73 using namespace WebCore; | 73 using namespace WebCore; |
| 74 | 74 |
| 75 namespace WebKit { | 75 namespace WebKit { |
| 76 | 76 |
| 77 // This function is called on the main thread to force to initialize some static | 77 // This function is called on the main thread to force to initialize some static |
| 78 // values used in WebKit before any worker thread is started. This is because in | 78 // values used in WebKit before any worker thread is started. This is because in |
| 79 // our worker processs, we do not run any WebKit code in main thread and thus | 79 // our worker processs, we do not run any WebKit code in main thread and thus |
| 80 // when multiple workers try to start at the same time, we might hit crash due | 80 // when multiple workers try to start at the same time, we might hit crash due |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 workerThread()->runLoop().postTaskForMode(createCallbackTask(dispatchOnInspe
ctorBackendTask, String(message)), WorkerDebuggerAgent::debuggerTaskMode); | 348 workerThread()->runLoop().postTaskForMode(createCallbackTask(dispatchOnInspe
ctorBackendTask, String(message)), WorkerDebuggerAgent::debuggerTaskMode); |
| 349 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(workerThread()); | 349 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(workerThread()); |
| 350 } | 350 } |
| 351 | 351 |
| 352 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) | 352 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) |
| 353 { | 353 { |
| 354 return new WebSharedWorkerImpl(client); | 354 return new WebSharedWorkerImpl(client); |
| 355 } | 355 } |
| 356 | 356 |
| 357 } // namespace WebKit | 357 } // namespace WebKit |
| OLD | NEW |