dom/asmjscache/PAsmJSCacheEntry.ipdl
author B2G Bumper Bot <release+b2gbumper@mozilla.com>
Sat, 07 Jun 2014 18:33:13 -0700
changeset 206668 6899d314ced105c4d194148962b565b4daffea9c
parent 189545 a0c4fa6338dc0bd2640429f30de23ceb9ff357ad
child 239446 fbe41ce2f630492906e42e4fb6f8378bc0582601
permissions -rw-r--r--
Bumping manifests a=b2g-bump

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

include protocol PContent;

using mozilla::dom::asmjscache::Metadata from "mozilla/dom/asmjscache/AsmJSCache.h";

namespace mozilla {
namespace dom {
namespace asmjscache {

protocol PAsmJSCacheEntry
{
  manager PContent;

  // When the cache is opened to read, the parent process sends over the
  // origin's Metadata so the child process can select the cache entry to open
  // (based on hash) and notify the parent (via SelectCacheFileToRead).
child:
  OnOpenMetadataForRead(Metadata metadata);
parent:
  SelectCacheFileToRead(uint32_t moduleIndex);
  CacheMiss();

child:
  // Once the cache file has been opened, the child is notified and sent an
  // open file descriptor.
  OnOpenCacheFile(int64_t fileSize, FileDescriptor fileDesc);

both:
  __delete__();
};

} // namespace asmjscache
} // namespace dom
} // namespace mozilla