OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2009 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2009 Google Inc. All Rights Reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "core/inspector/WorkerDebuggerAgent.h" | 42 #include "core/inspector/WorkerDebuggerAgent.h" |
43 #include "core/loader/DocumentLoadTiming.h" | 43 #include "core/loader/DocumentLoadTiming.h" |
44 #include "core/loader/DocumentLoader.h" | 44 #include "core/loader/DocumentLoader.h" |
45 #include "core/workers/DedicatedWorkerGlobalScope.h" | 45 #include "core/workers/DedicatedWorkerGlobalScope.h" |
46 #include "core/workers/DedicatedWorkerThread.h" | 46 #include "core/workers/DedicatedWorkerThread.h" |
47 #include "core/workers/Worker.h" | 47 #include "core/workers/Worker.h" |
48 #include "core/workers/WorkerClients.h" | 48 #include "core/workers/WorkerClients.h" |
49 #include "core/workers/WorkerInspectorProxy.h" | 49 #include "core/workers/WorkerInspectorProxy.h" |
50 #include "core/workers/WorkerObjectProxy.h" | 50 #include "core/workers/WorkerObjectProxy.h" |
51 #include "core/workers/WorkerThreadStartupData.h" | 51 #include "core/workers/WorkerThreadStartupData.h" |
52 #include "platform/NotImplemented.h" | |
53 #include "platform/heap/Handle.h" | 52 #include "platform/heap/Handle.h" |
54 #include "wtf/Functional.h" | 53 #include "wtf/Functional.h" |
55 #include "wtf/MainThread.h" | 54 #include "wtf/MainThread.h" |
56 | 55 |
57 namespace blink { | 56 namespace blink { |
58 | 57 |
59 class MessageWorkerGlobalScopeTask : public ExecutionContextTask { | 58 class MessageWorkerGlobalScopeTask : public ExecutionContextTask { |
60 public: | 59 public: |
61 static PassOwnPtr<MessageWorkerGlobalScopeTask> create(PassRefPtr<Serialized
ScriptValue> message, PassOwnPtr<MessagePortChannelArray> channels) | 60 static PassOwnPtr<MessageWorkerGlobalScopeTask> create(PassRefPtr<Serialized
ScriptValue> message, PassOwnPtr<MessagePortChannelArray> channels) |
62 { | 61 { |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 | 286 |
288 // FIXME: This need to be revisited when we support nested worker one day | 287 // FIXME: This need to be revisited when we support nested worker one day |
289 ASSERT(m_executionContext->isDocument()); | 288 ASSERT(m_executionContext->isDocument()); |
290 Document* document = toDocument(m_executionContext.get()); | 289 Document* document = toDocument(m_executionContext.get()); |
291 LocalFrame* frame = document->frame(); | 290 LocalFrame* frame = document->frame(); |
292 if (frame) | 291 if (frame) |
293 frame->console().adoptWorkerMessagesAfterTermination(this); | 292 frame->console().adoptWorkerMessagesAfterTermination(this); |
294 } | 293 } |
295 | 294 |
296 } // namespace blink | 295 } // namespace blink |
OLD | NEW |