OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 USING_FAST_MALLOC(InProcessWorkerObjectProxy); | 59 USING_FAST_MALLOC(InProcessWorkerObjectProxy); |
60 WTF_MAKE_NONCOPYABLE(InProcessWorkerObjectProxy); | 60 WTF_MAKE_NONCOPYABLE(InProcessWorkerObjectProxy); |
61 | 61 |
62 public: | 62 public: |
63 static std::unique_ptr<InProcessWorkerObjectProxy> create( | 63 static std::unique_ptr<InProcessWorkerObjectProxy> create( |
64 const WeakPtr<InProcessWorkerMessagingProxy>&, | 64 const WeakPtr<InProcessWorkerMessagingProxy>&, |
65 ParentFrameTaskRunners*); | 65 ParentFrameTaskRunners*); |
66 ~InProcessWorkerObjectProxy() override; | 66 ~InProcessWorkerObjectProxy() override; |
67 | 67 |
68 void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, | 68 void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, |
69 std::unique_ptr<MessagePortChannelArray>); | 69 MessagePortChannelArray); |
70 void processUnhandledException(int exceptionId, WorkerThread*); | 70 void processUnhandledException(int exceptionId, WorkerThread*); |
71 void processMessageFromWorkerObject( | 71 void processMessageFromWorkerObject(PassRefPtr<SerializedScriptValue> message, |
72 PassRefPtr<SerializedScriptValue> message, | 72 MessagePortChannelArray channels, |
73 std::unique_ptr<MessagePortChannelArray> channels, | 73 WorkerThread*); |
74 WorkerThread*); | |
75 | 74 |
76 // ThreadedMessagingProxyBase overrides. | 75 // ThreadedMessagingProxyBase overrides. |
77 void reportException(const String& errorMessage, | 76 void reportException(const String& errorMessage, |
78 std::unique_ptr<SourceLocation>, | 77 std::unique_ptr<SourceLocation>, |
79 int exceptionId) override; | 78 int exceptionId) override; |
80 void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override; | 79 void didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override; |
81 void didEvaluateWorkerScript(bool success) override; | 80 void didEvaluateWorkerScript(bool success) override; |
82 void willDestroyWorkerGlobalScope() override; | 81 void willDestroyWorkerGlobalScope() override; |
83 | 82 |
84 protected: | 83 protected: |
(...skipping 29 matching lines...) Expand all Loading... |
114 // The max interval duration of the timer. This is usually kMaxIntervalInSec | 113 // The max interval duration of the timer. This is usually kMaxIntervalInSec |
115 // but made as a member variable for testing. | 114 // but made as a member variable for testing. |
116 double m_maxIntervalInSec; | 115 double m_maxIntervalInSec; |
117 | 116 |
118 CrossThreadPersistent<WorkerGlobalScope> m_workerGlobalScope; | 117 CrossThreadPersistent<WorkerGlobalScope> m_workerGlobalScope; |
119 }; | 118 }; |
120 | 119 |
121 } // namespace blink | 120 } // namespace blink |
122 | 121 |
123 #endif // InProcessWorkerObjectProxy_h | 122 #endif // InProcessWorkerObjectProxy_h |
OLD | NEW |