OLD | NEW |
| (Empty) |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WorkletObjectProxy_h | |
6 #define WorkletObjectProxy_h | |
7 | |
8 #include "core/CoreExport.h" | |
9 #include "platform/heap/GarbageCollected.h" | |
10 #include "platform/weborigin/KURL.h" | |
11 #include "platform/wtf/text/WTFString.h" | |
12 | |
13 namespace blink { | |
14 | |
15 // A proxy to talk to the Worklet object on the main thread from the worklet | |
16 // global scope that may exist in the main thread or on a different thread. | |
17 class CORE_EXPORT WorkletObjectProxy : public GarbageCollectedMixin { | |
18 public: | |
19 // Called when the worklet module script is fetched and evaluated. |success| | |
20 // is true if the sequence is completed without an error. | |
21 virtual void DidFetchAndInvokeScript(int32_t request_id, bool success) = 0; | |
22 }; | |
23 | |
24 } // namespace blink | |
25 | |
26 #endif // WorkletObjectProxy_h | |
OLD | NEW |