| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WorkerInspectorProxy_h | 5 #ifndef WorkerInspectorProxy_h |
| 6 #define WorkerInspectorProxy_h | 6 #define WorkerInspectorProxy_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "public/platform/WebThread.h" | 9 #include "public/platform/WebThread.h" |
| 10 #include "wtf/Forward.h" | 10 #include "wtf/Forward.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class ExecutionContext; | 14 class ExecutionContext; |
| 15 class KURL; | 15 class KURL; |
| 16 class WebTraceLocation; | 16 class WebTraceLocation; |
| 17 class WorkerGlobalScopeProxy; | 17 class WorkerGlobalScopeProxy; |
| 18 class WorkerThread; | 18 class WorkerThread; |
| 19 | 19 |
| 20 // A proxy for talking to the worker inspector on the worker thread. | 20 // A proxy for talking to the worker inspector on the worker thread. |
| 21 // All of these methods should be called on the main thread. | 21 // All of these methods should be called on the main thread. |
| 22 class CORE_EXPORT WorkerInspectorProxy final { | 22 class CORE_EXPORT WorkerInspectorProxy final { |
| 23 WTF_MAKE_FAST_ALLOCATED(WorkerInspectorProxy); |
| 23 public: | 24 public: |
| 24 static PassOwnPtr<WorkerInspectorProxy> create(); | 25 static PassOwnPtr<WorkerInspectorProxy> create(); |
| 25 | 26 |
| 26 ~WorkerInspectorProxy(); | 27 ~WorkerInspectorProxy(); |
| 27 | 28 |
| 28 class PageInspector { | 29 class PageInspector { |
| 29 public: | 30 public: |
| 30 virtual ~PageInspector() { } | 31 virtual ~PageInspector() { } |
| 31 virtual void dispatchMessageFromWorker(const String&) = 0; | 32 virtual void dispatchMessageFromWorker(const String&) = 0; |
| 32 virtual void workerConsoleAgentEnabled(WorkerGlobalScopeProxy*) = 0; | 33 virtual void workerConsoleAgentEnabled(WorkerGlobalScopeProxy*) = 0; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 52 | 53 |
| 53 WorkerThread* m_workerThread; | 54 WorkerThread* m_workerThread; |
| 54 ExecutionContext* m_executionContext; | 55 ExecutionContext* m_executionContext; |
| 55 WorkerInspectorProxy::PageInspector* m_pageInspector; | 56 WorkerInspectorProxy::PageInspector* m_pageInspector; |
| 56 WorkerGlobalScopeProxy* m_workerGlobalScopeProxy; | 57 WorkerGlobalScopeProxy* m_workerGlobalScopeProxy; |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 } // namespace blink | 60 } // namespace blink |
| 60 | 61 |
| 61 #endif // WorkerInspectorProxy_h | 62 #endif // WorkerInspectorProxy_h |
| OLD | NEW |