PScriptCache.ipdl (1005B)
1 /* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 8 -*- */ 2 /* vim: set sw=4 ts=8 et tw=80 ft=cpp : */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 include protocol PContent; 8 9 include "mozilla/loader/ScriptCacheActors.h"; 10 11 using class mozilla::TimeStamp from "mozilla/TimeStamp.h"; 12 using struct mozilla::void_t from "mozilla/ipc/IPCCore.h"; 13 14 namespace mozilla { 15 namespace loader { 16 17 struct ScriptData { 18 nsCString url; 19 nsCString cachePath; 20 TimeStamp loadTime; 21 // This will be an empty array if script data is present in the previous 22 // session's cache. 23 uint8_t[] xdrData; 24 }; 25 26 [ManualDealloc, ChildImpl="ScriptCacheChild", ParentImpl="ScriptCacheParent"] 27 protocol PScriptCache 28 { 29 manager PContent; 30 31 parent: 32 async __delete__(ScriptData[] scripts); 33 }; 34 35 } // namespace loader 36 } // namespace mozilla