| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #include "core/inspector/WorkerRuntimeAgent.h" | 50 #include "core/inspector/WorkerRuntimeAgent.h" |
| 51 #include "core/workers/WorkerGlobalScope.h" | 51 #include "core/workers/WorkerGlobalScope.h" |
| 52 #include "core/workers/WorkerReportingProxy.h" | 52 #include "core/workers/WorkerReportingProxy.h" |
| 53 #include "core/workers/WorkerThread.h" | 53 #include "core/workers/WorkerThread.h" |
| 54 #include "wtf/PassOwnPtr.h" | 54 #include "wtf/PassOwnPtr.h" |
| 55 | 55 |
| 56 namespace blink { | 56 namespace blink { |
| 57 | 57 |
| 58 namespace { | 58 namespace { |
| 59 | 59 |
| 60 class PageInspectorProxy FINAL : public InspectorFrontendChannel { | 60 class PageInspectorProxy final : public InspectorFrontendChannel { |
| 61 WTF_MAKE_FAST_ALLOCATED; | 61 WTF_MAKE_FAST_ALLOCATED; |
| 62 public: | 62 public: |
| 63 explicit PageInspectorProxy(WorkerGlobalScope* workerGlobalScope) : m_worker
GlobalScope(workerGlobalScope) { } | 63 explicit PageInspectorProxy(WorkerGlobalScope* workerGlobalScope) : m_worker
GlobalScope(workerGlobalScope) { } |
| 64 virtual ~PageInspectorProxy() { } | 64 virtual ~PageInspectorProxy() { } |
| 65 private: | 65 private: |
| 66 virtual void sendMessageToFrontend(PassRefPtr<JSONObject> message) OVERRIDE | 66 virtual void sendMessageToFrontend(PassRefPtr<JSONObject> message) override |
| 67 { | 67 { |
| 68 m_workerGlobalScope->thread()->workerReportingProxy().postMessageToPageI
nspector(message->toJSONString()); | 68 m_workerGlobalScope->thread()->workerReportingProxy().postMessageToPageI
nspector(message->toJSONString()); |
| 69 } | 69 } |
| 70 virtual void flush() OVERRIDE { } | 70 virtual void flush() override { } |
| 71 WorkerGlobalScope* m_workerGlobalScope; | 71 WorkerGlobalScope* m_workerGlobalScope; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 class WorkerStateClient FINAL : public InspectorStateClient { | 74 class WorkerStateClient final : public InspectorStateClient { |
| 75 WTF_MAKE_FAST_ALLOCATED; | 75 WTF_MAKE_FAST_ALLOCATED; |
| 76 public: | 76 public: |
| 77 WorkerStateClient(WorkerGlobalScope* context) : m_workerGlobalScope(context)
{ } | 77 WorkerStateClient(WorkerGlobalScope* context) : m_workerGlobalScope(context)
{ } |
| 78 virtual ~WorkerStateClient() { } | 78 virtual ~WorkerStateClient() { } |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 virtual void updateInspectorStateCookie(const String& cookie) OVERRIDE | 81 virtual void updateInspectorStateCookie(const String& cookie) override |
| 82 { | 82 { |
| 83 m_workerGlobalScope->thread()->workerReportingProxy().updateInspectorSta
teCookie(cookie); | 83 m_workerGlobalScope->thread()->workerReportingProxy().updateInspectorSta
teCookie(cookie); |
| 84 } | 84 } |
| 85 | 85 |
| 86 WorkerGlobalScope* m_workerGlobalScope; | 86 WorkerGlobalScope* m_workerGlobalScope; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } | 89 } |
| 90 | 90 |
| 91 WorkerInspectorController::WorkerInspectorController(WorkerGlobalScope* workerGl
obalScope) | 91 WorkerInspectorController::WorkerInspectorController(WorkerGlobalScope* workerGl
obalScope) |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 visitor->trace(m_workerGlobalScope); | 182 visitor->trace(m_workerGlobalScope); |
| 183 visitor->trace(m_state); | 183 visitor->trace(m_state); |
| 184 visitor->trace(m_instrumentingAgents); | 184 visitor->trace(m_instrumentingAgents); |
| 185 visitor->trace(m_injectedScriptManager); | 185 visitor->trace(m_injectedScriptManager); |
| 186 visitor->trace(m_backendDispatcher); | 186 visitor->trace(m_backendDispatcher); |
| 187 visitor->trace(m_agents); | 187 visitor->trace(m_agents); |
| 188 visitor->trace(m_workerDebuggerAgent); | 188 visitor->trace(m_workerDebuggerAgent); |
| 189 } | 189 } |
| 190 | 190 |
| 191 } | 191 } |
| OLD | NEW |