1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/asmjscache/PAsmJSCacheEntry.ipdl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +include protocol PContent; 1.9 + 1.10 +using mozilla::dom::asmjscache::Metadata from "mozilla/dom/asmjscache/AsmJSCache.h"; 1.11 + 1.12 +namespace mozilla { 1.13 +namespace dom { 1.14 +namespace asmjscache { 1.15 + 1.16 +protocol PAsmJSCacheEntry 1.17 +{ 1.18 + manager PContent; 1.19 + 1.20 + // When the cache is opened to read, the parent process sends over the 1.21 + // origin's Metadata so the child process can select the cache entry to open 1.22 + // (based on hash) and notify the parent (via SelectCacheFileToRead). 1.23 +child: 1.24 + OnOpenMetadataForRead(Metadata metadata); 1.25 +parent: 1.26 + SelectCacheFileToRead(uint32_t moduleIndex); 1.27 + CacheMiss(); 1.28 + 1.29 +child: 1.30 + // Once the cache file has been opened, the child is notified and sent an 1.31 + // open file descriptor. 1.32 + OnOpenCacheFile(int64_t fileSize, FileDescriptor fileDesc); 1.33 + 1.34 +both: 1.35 + __delete__(); 1.36 +}; 1.37 + 1.38 +} // namespace asmjscache 1.39 +} // namespace dom 1.40 +} // namespace mozilla