Chromium Code Reviews| 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 WorkerGlobalScope; |
|
nhiroki
2016/07/27 07:12:05
Can you remove this?
ikilpatrick
2016/07/27 17:50:41
Done.
| |
| 47 class WorkerThread; | |
| 47 class WorkerThreadDebugger; | 48 class WorkerThreadDebugger; |
| 48 | 49 |
| 49 namespace protocol { | 50 namespace protocol { |
| 50 class Dispatcher; | 51 class Dispatcher; |
| 51 class Frontend; | 52 class Frontend; |
| 52 class FrontendChannel; | 53 class FrontendChannel; |
| 53 } | 54 } |
| 54 | 55 |
| 55 class WorkerInspectorController final : public GarbageCollectedFinalized<WorkerI nspectorController>, public InspectorSession::Client { | 56 class WorkerInspectorController final : public GarbageCollectedFinalized<WorkerI nspectorController>, public InspectorSession::Client { |
| 56 WTF_MAKE_NONCOPYABLE(WorkerInspectorController); | 57 WTF_MAKE_NONCOPYABLE(WorkerInspectorController); |
| 57 public: | 58 public: |
| 58 static WorkerInspectorController* create(WorkerGlobalScope*); | 59 static WorkerInspectorController* create(WorkerThread*); |
| 59 ~WorkerInspectorController(); | 60 ~WorkerInspectorController(); |
|
yhirano
2016/07/27 08:57:06
+override
ikilpatrick
2016/07/27 17:50:41
Done.
| |
| 60 DECLARE_TRACE(); | 61 DECLARE_TRACE(); |
| 61 | 62 |
| 62 InstrumentingAgents* instrumentingAgents() const { return m_instrumentingAge nts.get(); } | 63 InstrumentingAgents* instrumentingAgents() const { return m_instrumentingAge nts.get(); } |
| 63 | 64 |
| 64 void connectFrontend(); | 65 void connectFrontend(); |
| 65 void disconnectFrontend(); | 66 void disconnectFrontend(); |
| 66 void dispatchMessageFromFrontend(const String&); | 67 void dispatchMessageFromFrontend(const String&); |
| 67 void dispose(); | 68 void dispose(); |
| 68 | 69 |
| 69 private: | 70 private: |
| 70 WorkerInspectorController(WorkerGlobalScope*, WorkerThreadDebugger*); | 71 WorkerInspectorController(WorkerThread*, WorkerThreadDebugger*); |
| 71 | 72 |
| 72 // InspectorSession::Client implementation. | 73 // InspectorSession::Client implementation. |
| 73 void sendProtocolMessage(int sessionId, int callId, const String& response, const String& state) override; | 74 void sendProtocolMessage(int sessionId, int callId, const String& response, const String& state) override; |
| 74 void resumeStartup() override; | 75 void resumeStartup() override; |
| 75 void consoleCleared() override; | 76 void consoleCleared() override; |
| 76 | 77 |
| 77 WorkerThreadDebugger* m_debugger; | 78 WorkerThreadDebugger* m_debugger; |
| 78 Member<WorkerGlobalScope> m_workerGlobalScope; | 79 WorkerThread* m_thread; |
| 79 Member<InstrumentingAgents> m_instrumentingAgents; | 80 Member<InstrumentingAgents> m_instrumentingAgents; |
| 80 Member<InspectorSession> m_session; | 81 Member<InspectorSession> m_session; |
| 81 Member<InspectorLogAgent> m_logAgent; | 82 Member<InspectorLogAgent> m_logAgent; |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace blink | 85 } // namespace blink |
| 85 | 86 |
| 86 #endif // WorkerInspectorController_h | 87 #endif // WorkerInspectorController_h |
| OLD | NEW |