| 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 25 matching lines...) Expand all Loading... |
| 36 #include "wtf/Allocator.h" | 36 #include "wtf/Allocator.h" |
| 37 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
| 38 #include "wtf/Noncopyable.h" | 38 #include "wtf/Noncopyable.h" |
| 39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class InspectorLogAgent; | 43 class InspectorLogAgent; |
| 44 class InstrumentingAgents; | 44 class InstrumentingAgents; |
| 45 class V8Debugger; | 45 class V8Debugger; |
| 46 class WorkerGlobalScope; | 46 class WorkerThread; |
| 47 class WorkerThreadDebugger; | 47 class WorkerThreadDebugger; |
| 48 | 48 |
| 49 namespace protocol { | 49 namespace protocol { |
| 50 class Dispatcher; | 50 class Dispatcher; |
| 51 class Frontend; | 51 class Frontend; |
| 52 class FrontendChannel; | 52 class FrontendChannel; |
| 53 } | 53 } |
| 54 | 54 |
| 55 class WorkerInspectorController final : public GarbageCollectedFinalized<WorkerI
nspectorController>, public InspectorSession::Client { | 55 class WorkerInspectorController final : public GarbageCollectedFinalized<WorkerI
nspectorController>, public InspectorSession::Client { |
| 56 WTF_MAKE_NONCOPYABLE(WorkerInspectorController); | 56 WTF_MAKE_NONCOPYABLE(WorkerInspectorController); |
| 57 public: | 57 public: |
| 58 static WorkerInspectorController* create(WorkerGlobalScope*); | 58 static WorkerInspectorController* create(WorkerThread*); |
| 59 ~WorkerInspectorController(); | 59 ~WorkerInspectorController() override; |
| 60 DECLARE_TRACE(); | 60 DECLARE_TRACE(); |
| 61 | 61 |
| 62 InstrumentingAgents* instrumentingAgents() const { return m_instrumentingAge
nts.get(); } | 62 InstrumentingAgents* instrumentingAgents() const { return m_instrumentingAge
nts.get(); } |
| 63 | 63 |
| 64 void connectFrontend(); | 64 void connectFrontend(); |
| 65 void disconnectFrontend(); | 65 void disconnectFrontend(); |
| 66 void dispatchMessageFromFrontend(const String&); | 66 void dispatchMessageFromFrontend(const String&); |
| 67 void dispose(); | 67 void dispose(); |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 WorkerInspectorController(WorkerGlobalScope*, WorkerThreadDebugger*); | 70 WorkerInspectorController(WorkerThread*, WorkerThreadDebugger*); |
| 71 | 71 |
| 72 // InspectorSession::Client implementation. | 72 // InspectorSession::Client implementation. |
| 73 void sendProtocolMessage(int sessionId, int callId, const String& response,
const String& state) override; | 73 void sendProtocolMessage(int sessionId, int callId, const String& response,
const String& state) override; |
| 74 void resumeStartup() override; | 74 void resumeStartup() override; |
| 75 void consoleCleared() override; | 75 void consoleCleared() override; |
| 76 | 76 |
| 77 WorkerThreadDebugger* m_debugger; | 77 WorkerThreadDebugger* m_debugger; |
| 78 Member<WorkerGlobalScope> m_workerGlobalScope; | 78 WorkerThread* m_thread; |
| 79 Member<InstrumentingAgents> m_instrumentingAgents; | 79 Member<InstrumentingAgents> m_instrumentingAgents; |
| 80 Member<InspectorSession> m_session; | 80 Member<InspectorSession> m_session; |
| 81 Member<InspectorLogAgent> m_logAgent; | 81 Member<InspectorLogAgent> m_logAgent; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace blink | 84 } // namespace blink |
| 85 | 85 |
| 86 #endif // WorkerInspectorController_h | 86 #endif // WorkerInspectorController_h |
| OLD | NEW |