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 ThreadedMessagingProxyBase_h | 5 #ifndef ThreadedMessagingProxyBase_h |
6 #define ThreadedMessagingProxyBase_h | 6 #define ThreadedMessagingProxyBase_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/frame/UseCounter.h" | 9 #include "core/frame/UseCounter.h" |
10 #include "core/inspector/ConsoleTypes.h" | 10 #include "core/inspector/ConsoleTypes.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // This may cause deletion of this via |keep_alive_|. | 47 // This may cause deletion of this via |keep_alive_|. |
48 void ParentObjectDestroyed(); | 48 void ParentObjectDestroyed(); |
49 | 49 |
50 void CountFeature(WebFeature); | 50 void CountFeature(WebFeature); |
51 void CountDeprecation(WebFeature); | 51 void CountDeprecation(WebFeature); |
52 | 52 |
53 void ReportConsoleMessage(MessageSource, | 53 void ReportConsoleMessage(MessageSource, |
54 MessageLevel, | 54 MessageLevel, |
55 const String& message, | 55 const String& message, |
56 std::unique_ptr<SourceLocation>); | 56 std::unique_ptr<SourceLocation>); |
57 void PostMessageToPageInspector(const String&); | 57 void PostMessageToPageInspector(int session_id, const String&); |
58 | 58 |
59 // 'virtual' for testing. | 59 // 'virtual' for testing. |
60 virtual void WorkerThreadTerminated(); | 60 virtual void WorkerThreadTerminated(); |
61 | 61 |
62 // Number of live messaging proxies, used by leak detection. | 62 // Number of live messaging proxies, used by leak detection. |
63 static int ProxyCount(); | 63 static int ProxyCount(); |
64 | 64 |
65 DECLARE_VIRTUAL_TRACE(); | 65 DECLARE_VIRTUAL_TRACE(); |
66 | 66 |
67 protected: | 67 protected: |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 // Used to keep this alive until the worker thread gets terminated. This is | 104 // Used to keep this alive until the worker thread gets terminated. This is |
105 // necessary because the co-owner (i.e., Worker or Worklet object) can be | 105 // necessary because the co-owner (i.e., Worker or Worklet object) can be |
106 // destroyed before thread termination. | 106 // destroyed before thread termination. |
107 SelfKeepAlive<ThreadedMessagingProxyBase> keep_alive_; | 107 SelfKeepAlive<ThreadedMessagingProxyBase> keep_alive_; |
108 }; | 108 }; |
109 | 109 |
110 } // namespace blink | 110 } // namespace blink |
111 | 111 |
112 #endif // ThreadedMessagingProxyBase_h | 112 #endif // ThreadedMessagingProxyBase_h |
OLD | NEW |