dom/asmjscache/PAsmJSCacheEntry.ipdl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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";
     9 namespace mozilla {
    10 namespace dom {
    11 namespace asmjscache {
    13 protocol PAsmJSCacheEntry
    14 {
    15   manager PContent;
    17   // When the cache is opened to read, the parent process sends over the
    18   // origin's Metadata so the child process can select the cache entry to open
    19   // (based on hash) and notify the parent (via SelectCacheFileToRead).
    20 child:
    21   OnOpenMetadataForRead(Metadata metadata);
    22 parent:
    23   SelectCacheFileToRead(uint32_t moduleIndex);
    24   CacheMiss();
    26 child:
    27   // Once the cache file has been opened, the child is notified and sent an
    28   // open file descriptor.
    29   OnOpenCacheFile(int64_t fileSize, FileDescriptor fileDesc);
    31 both:
    32   __delete__();
    33 };
    35 } // namespace asmjscache
    36 } // namespace dom
    37 } // namespace mozilla

mercurial