1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 include protocol PContent;
7 using mozilla::dom::asmjscache::Metadata from "mozilla/dom/asmjscache/AsmJSCache.h";
8 using JS::AsmJSCacheResult from "mozilla/dom/asmjscache/AsmJSCache.h";
12 namespace asmjscache {
14 protocol PAsmJSCacheEntry
18 // When the cache is opened to read, the parent process sends over the
19 // origin's Metadata so the child process can select the cache entry to open
20 // (based on hash) and notify the parent (via SelectCacheFileToRead).
22 OnOpenMetadataForRead(Metadata metadata);
24 SelectCacheFileToRead(uint32_t moduleIndex);
28 // Once the cache file has been opened, the child is notified and sent an
29 // open file descriptor.
30 OnOpenCacheFile(int64_t fileSize, FileDescriptor fileDesc);
33 __delete__(AsmJSCacheResult result);
36 } // namespace asmjscache
38 } // namespace mozilla