Bumping manifests a=b2g-bump
[gecko.git] / dom / asmjscache / PAsmJSCacheEntry.ipdl
blob47747cfbe825b5857fbadd38d22cc42a286229cf
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";
10 namespace mozilla {
11 namespace dom {
12 namespace asmjscache {
14 protocol PAsmJSCacheEntry
16   manager PContent;
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).
21 child:
22   OnOpenMetadataForRead(Metadata metadata);
23 parent:
24   SelectCacheFileToRead(uint32_t moduleIndex);
25   CacheMiss();
27 child:
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);
32 both:
33   __delete__(AsmJSCacheResult result);
36 } // namespace asmjscache
37 } // namespace dom
38 } // namespace mozilla