| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 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 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "core/workers/WorkerGlobalScope.h" | 36 #include "core/workers/WorkerGlobalScope.h" |
| 37 #include "core/workers/WorkerReportingProxy.h" | 37 #include "core/workers/WorkerReportingProxy.h" |
| 38 #include "core/workers/WorkerThread.h" | 38 #include "core/workers/WorkerThread.h" |
| 39 | 39 |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 WorkerConsole::WorkerConsole(WorkerGlobalScope* scope) | 43 WorkerConsole::WorkerConsole(WorkerGlobalScope* scope) |
| 44 : m_scope(scope) | 44 : m_scope(scope) |
| 45 { | 45 { |
| 46 ScriptWrappable::init(this); | |
| 47 } | 46 } |
| 48 | 47 |
| 49 WorkerConsole::~WorkerConsole() | 48 WorkerConsole::~WorkerConsole() |
| 50 { | 49 { |
| 51 } | 50 } |
| 52 | 51 |
| 53 void WorkerConsole::reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage
> consoleMessage) | 52 void WorkerConsole::reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage
> consoleMessage) |
| 54 { | 53 { |
| 55 const ScriptCallFrame& lastCaller = consoleMessage->callStack()->at(0); | 54 const ScriptCallFrame& lastCaller = consoleMessage->callStack()->at(0); |
| 56 consoleMessage->setURL(lastCaller.sourceURL()); | 55 consoleMessage->setURL(lastCaller.sourceURL()); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 67 | 66 |
| 68 void WorkerConsole::trace(Visitor* visitor) | 67 void WorkerConsole::trace(Visitor* visitor) |
| 69 { | 68 { |
| 70 visitor->trace(m_scope); | 69 visitor->trace(m_scope); |
| 71 ConsoleBase::trace(visitor); | 70 ConsoleBase::trace(visitor); |
| 72 } | 71 } |
| 73 | 72 |
| 74 // FIXME: add memory getter | 73 // FIXME: add memory getter |
| 75 | 74 |
| 76 } // namespace blink | 75 } // namespace blink |
| OLD | NEW |