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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "core/loader/FrameLoadRequest.h" | 50 #include "core/loader/FrameLoadRequest.h" |
51 #include "core/loader/FrameLoader.h" | 51 #include "core/loader/FrameLoader.h" |
52 #include "core/page/Page.h" | 52 #include "core/page/Page.h" |
53 #include "core/page/PageGroup.h" | 53 #include "core/page/PageGroup.h" |
54 #include "core/workers/SharedWorkerGlobalScope.h" | 54 #include "core/workers/SharedWorkerGlobalScope.h" |
55 #include "core/workers/SharedWorkerThread.h" | 55 #include "core/workers/SharedWorkerThread.h" |
56 #include "core/workers/WorkerClients.h" | 56 #include "core/workers/WorkerClients.h" |
57 #include "core/workers/WorkerGlobalScope.h" | 57 #include "core/workers/WorkerGlobalScope.h" |
58 #include "core/workers/WorkerThreadStartupData.h" | 58 #include "core/workers/WorkerThreadStartupData.h" |
59 #include "modules/webdatabase/DatabaseTask.h" | 59 #include "modules/webdatabase/DatabaseTask.h" |
| 60 #include "platform/weborigin/KURL.h" |
| 61 #include "platform/weborigin/SecurityOrigin.h" |
60 #include "public/platform/WebFileError.h" | 62 #include "public/platform/WebFileError.h" |
61 #include "public/platform/WebMessagePortChannel.h" | 63 #include "public/platform/WebMessagePortChannel.h" |
62 #include "public/platform/WebString.h" | 64 #include "public/platform/WebString.h" |
63 #include "public/platform/WebURL.h" | 65 #include "public/platform/WebURL.h" |
64 #include "public/web/WebWorkerPermissionClientProxy.h" | 66 #include "public/web/WebWorkerPermissionClientProxy.h" |
65 #include "weborigin/KURL.h" | |
66 #include "weborigin/SecurityOrigin.h" | |
67 #include "wtf/Functional.h" | 67 #include "wtf/Functional.h" |
68 #include "wtf/MainThread.h" | 68 #include "wtf/MainThread.h" |
69 | 69 |
70 using namespace WebCore; | 70 using namespace WebCore; |
71 | 71 |
72 namespace blink { | 72 namespace blink { |
73 | 73 |
74 // This function is called on the main thread to force to initialize some static | 74 // This function is called on the main thread to force to initialize some static |
75 // values used in WebKit before any worker thread is started. This is because in | 75 // values used in WebKit before any worker thread is started. This is because in |
76 // our worker processs, we do not run any WebKit code in main thread and thus | 76 // our worker processs, we do not run any WebKit code in main thread and thus |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 workerThread()->runLoop().postTaskForMode(createCallbackTask(dispatchOnInspe
ctorBackendTask, String(message)), WorkerDebuggerAgent::debuggerTaskMode); | 340 workerThread()->runLoop().postTaskForMode(createCallbackTask(dispatchOnInspe
ctorBackendTask, String(message)), WorkerDebuggerAgent::debuggerTaskMode); |
341 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(workerThread()); | 341 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(workerThread()); |
342 } | 342 } |
343 | 343 |
344 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) | 344 WebSharedWorker* WebSharedWorker::create(WebSharedWorkerClient* client) |
345 { | 345 { |
346 return new WebSharedWorkerImpl(client); | 346 return new WebSharedWorkerImpl(client); |
347 } | 347 } |
348 | 348 |
349 } // namespace blink | 349 } // namespace blink |
OLD | NEW |