OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 InspectorRuntimeAgent::trace(visitor); | 51 InspectorRuntimeAgent::trace(visitor); |
52 } | 52 } |
53 | 53 |
54 void WorkerRuntimeAgent::enable(ErrorString* errorString) | 54 void WorkerRuntimeAgent::enable(ErrorString* errorString) |
55 { | 55 { |
56 if (m_enabled) | 56 if (m_enabled) |
57 return; | 57 return; |
58 | 58 |
59 InspectorRuntimeAgent::enable(errorString); | 59 InspectorRuntimeAgent::enable(errorString); |
60 ScriptState* scriptState = m_workerGlobalScope->scriptController()->scriptSt
ate(); | 60 ScriptState* scriptState = m_workerGlobalScope->scriptController()->scriptSt
ate(); |
61 reportExecutionContextCreated(scriptState, "", m_workerGlobalScope->url(), "
", ""); | 61 reportExecutionContextCreated(scriptState, "", m_workerGlobalScope->url().ge
tString(), "", ""); |
62 } | 62 } |
63 | 63 |
64 ScriptState* WorkerRuntimeAgent::defaultScriptState() | 64 ScriptState* WorkerRuntimeAgent::defaultScriptState() |
65 { | 65 { |
66 return m_workerGlobalScope->scriptController()->scriptState(); | 66 return m_workerGlobalScope->scriptController()->scriptState(); |
67 } | 67 } |
68 | 68 |
69 void WorkerRuntimeAgent::muteConsole() | 69 void WorkerRuntimeAgent::muteConsole() |
70 { | 70 { |
71 // We don't need to mute console for workers. | 71 // We don't need to mute console for workers. |
72 } | 72 } |
73 | 73 |
74 void WorkerRuntimeAgent::unmuteConsole() | 74 void WorkerRuntimeAgent::unmuteConsole() |
75 { | 75 { |
76 // We don't need to mute console for workers. | 76 // We don't need to mute console for workers. |
77 } | 77 } |
78 | 78 |
79 } // namespace blink | 79 } // namespace blink |
OLD | NEW |