| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ThreadedObjectProxyBase_h | 5 #ifndef ThreadedObjectProxyBase_h |
| 6 #define ThreadedObjectProxyBase_h | 6 #define ThreadedObjectProxyBase_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/SourceLocation.h" | 8 #include "bindings/core/v8/SourceLocation.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/dom/MessagePort.h" | 10 #include "core/dom/MessagePort.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 void ReportPendingActivity(bool has_pending_activity); | 29 void ReportPendingActivity(bool has_pending_activity); |
| 30 | 30 |
| 31 // WorkerReportingProxy overrides. | 31 // WorkerReportingProxy overrides. |
| 32 void CountFeature(WebFeature) override; | 32 void CountFeature(WebFeature) override; |
| 33 void CountDeprecation(WebFeature) override; | 33 void CountDeprecation(WebFeature) override; |
| 34 void ReportConsoleMessage(MessageSource, | 34 void ReportConsoleMessage(MessageSource, |
| 35 MessageLevel, | 35 MessageLevel, |
| 36 const String& message, | 36 const String& message, |
| 37 SourceLocation*) override; | 37 SourceLocation*) override; |
| 38 void PostMessageToPageInspector(const String&) override; | 38 void PostMessageToPageInspector(int session_id, const String&) override; |
| 39 void DidCloseWorkerGlobalScope() override; | 39 void DidCloseWorkerGlobalScope() override; |
| 40 void DidTerminateWorkerThread() override; | 40 void DidTerminateWorkerThread() override; |
| 41 | 41 |
| 42 protected: | 42 protected: |
| 43 explicit ThreadedObjectProxyBase(ParentFrameTaskRunners*); | 43 explicit ThreadedObjectProxyBase(ParentFrameTaskRunners*); |
| 44 virtual CrossThreadWeakPersistent<ThreadedMessagingProxyBase> | 44 virtual CrossThreadWeakPersistent<ThreadedMessagingProxyBase> |
| 45 MessagingProxyWeakPtr() = 0; | 45 MessagingProxyWeakPtr() = 0; |
| 46 ParentFrameTaskRunners* GetParentFrameTaskRunners(); | 46 ParentFrameTaskRunners* GetParentFrameTaskRunners(); |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 // Used to post a task to ThreadedMessagingProxyBase on the parent context | 49 // Used to post a task to ThreadedMessagingProxyBase on the parent context |
| 50 // thread. | 50 // thread. |
| 51 CrossThreadPersistent<ParentFrameTaskRunners> parent_frame_task_runners_; | 51 CrossThreadPersistent<ParentFrameTaskRunners> parent_frame_task_runners_; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace blink | 54 } // namespace blink |
| 55 | 55 |
| 56 #endif // ThreadedObjectProxyBase_h | 56 #endif // ThreadedObjectProxyBase_h |
| OLD | NEW |