| 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 "wtf/Forward.h" | 8 #include "wtf/Forward.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class ExecutionContext; | 12 class ExecutionContext; |
| 13 class KURL; | 13 class KURL; |
| 14 class WorkerThread; | 14 class WorkerThread; |
| 15 | 15 |
| 16 // A proxy for talking to the worker inspector on the worker thread. | 16 // A proxy for talking to the worker inspector on the worker thread. |
| 17 // All of these methods should be called on the main thread. | 17 // All of these methods should be called on the main thread. |
| 18 class WorkerInspectorProxy FINAL { | 18 class WorkerInspectorProxy final { |
| 19 public: | 19 public: |
| 20 static PassOwnPtr<WorkerInspectorProxy> create(); | 20 static PassOwnPtr<WorkerInspectorProxy> create(); |
| 21 | 21 |
| 22 ~WorkerInspectorProxy(); | 22 ~WorkerInspectorProxy(); |
| 23 | 23 |
| 24 class PageInspector { | 24 class PageInspector { |
| 25 public: | 25 public: |
| 26 virtual ~PageInspector() { } | 26 virtual ~PageInspector() { } |
| 27 virtual void dispatchMessageFromWorker(const String&) = 0; | 27 virtual void dispatchMessageFromWorker(const String&) = 0; |
| 28 }; | 28 }; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 41 WorkerInspectorProxy(); | 41 WorkerInspectorProxy(); |
| 42 | 42 |
| 43 WorkerThread* m_workerThread; | 43 WorkerThread* m_workerThread; |
| 44 ExecutionContext* m_executionContext; | 44 ExecutionContext* m_executionContext; |
| 45 WorkerInspectorProxy::PageInspector* m_pageInspector; | 45 WorkerInspectorProxy::PageInspector* m_pageInspector; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace blink | 48 } // namespace blink |
| 49 | 49 |
| 50 #endif // WorkerInspectorProxy_h | 50 #endif // WorkerInspectorProxy_h |
| OLD | NEW |