| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace WebCore { |
| 42 | 42 |
| 43 class InjectedScriptManager; | 43 class InjectedScriptManager; |
| 44 class InspectorBackendDispatcher; | 44 class InspectorBackendDispatcher; |
| 45 class InspectorFrontend; | 45 class InspectorFrontend; |
| 46 class InspectorFrontendChannel; | 46 class InspectorFrontendChannel; |
| 47 class InspectorState; | 47 class InspectorState; |
| 48 class InspectorStateClient; | 48 class InspectorStateClient; |
| 49 class InstrumentingAgents; | 49 class InstrumentingAgents; |
| 50 class WorkerContext; | 50 class WorkerGlobalScope; |
| 51 class WorkerScriptDebugServer; | 51 class WorkerScriptDebugServer; |
| 52 | 52 |
| 53 class WorkerInspectorController { | 53 class WorkerInspectorController { |
| 54 WTF_MAKE_NONCOPYABLE(WorkerInspectorController); | 54 WTF_MAKE_NONCOPYABLE(WorkerInspectorController); |
| 55 WTF_MAKE_FAST_ALLOCATED; | 55 WTF_MAKE_FAST_ALLOCATED; |
| 56 public: | 56 public: |
| 57 WorkerInspectorController(WorkerContext*); | 57 WorkerInspectorController(WorkerGlobalScope*); |
| 58 ~WorkerInspectorController(); | 58 ~WorkerInspectorController(); |
| 59 | 59 |
| 60 bool hasFrontend() const { return m_frontend; } | 60 bool hasFrontend() const { return m_frontend; } |
| 61 void connectFrontend(); | 61 void connectFrontend(); |
| 62 void disconnectFrontend(); | 62 void disconnectFrontend(); |
| 63 void restoreInspectorStateFromCookie(const String& inspectorCookie); | 63 void restoreInspectorStateFromCookie(const String& inspectorCookie); |
| 64 void dispatchMessageFromFrontend(const String&); | 64 void dispatchMessageFromFrontend(const String&); |
| 65 void resume(); | 65 void resume(); |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 friend InstrumentingAgents* instrumentationForWorkerContext(WorkerContext*); | 68 friend InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobal
Scope*); |
| 69 | 69 |
| 70 WorkerContext* m_workerContext; | 70 WorkerGlobalScope* m_workerGlobalScope; |
| 71 OwnPtr<InspectorStateClient> m_stateClient; | 71 OwnPtr<InspectorStateClient> m_stateClient; |
| 72 OwnPtr<InspectorCompositeState> m_state; | 72 OwnPtr<InspectorCompositeState> m_state; |
| 73 RefPtr<InstrumentingAgents> m_instrumentingAgents; | 73 RefPtr<InstrumentingAgents> m_instrumentingAgents; |
| 74 OwnPtr<InjectedScriptManager> m_injectedScriptManager; | 74 OwnPtr<InjectedScriptManager> m_injectedScriptManager; |
| 75 OwnPtr<WorkerScriptDebugServer> m_debugServer; | 75 OwnPtr<WorkerScriptDebugServer> m_debugServer; |
| 76 InspectorAgentRegistry m_agents; | 76 InspectorAgentRegistry m_agents; |
| 77 OwnPtr<InspectorFrontendChannel> m_frontendChannel; | 77 OwnPtr<InspectorFrontendChannel> m_frontendChannel; |
| 78 OwnPtr<InspectorFrontend> m_frontend; | 78 OwnPtr<InspectorFrontend> m_frontend; |
| 79 RefPtr<InspectorBackendDispatcher> m_backendDispatcher; | 79 RefPtr<InspectorBackendDispatcher> m_backendDispatcher; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } | 82 } |
| 83 | 83 |
| 84 #endif // !defined(WorkerInspectorController_h) | 84 #endif // !defined(WorkerInspectorController_h) |
| OLD | NEW |