tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PTestUniquePtrIPC.ipdl (651B)


      1 using std::string from "string";
      2 
      3 // std::string is an arbitrary simple type declared inside a namespace,
      4 // to test that that will work when used in a UniquePtr inside a union.
      5 
      6 namespace mozilla {
      7 namespace _ipdltest {
      8 
      9 struct DummyStruct {
     10   string x;
     11 };
     12 
     13 union DummyUnion {
     14   UniquePtr<string>;
     15   int;
     16 };
     17 
     18 [ChildProc=any, ChildImpl=virtual, ParentImpl=virtual]
     19 protocol PTestUniquePtrIPC {
     20 child:
     21   async TestMessage(UniquePtr<string> a1, UniquePtr<DummyStruct> a2,
     22                     DummyStruct a3, UniquePtr<string> a4, DummyUnion a5);
     23   async TestSendReference(UniquePtr<DummyStruct> a);
     24 };
     25 
     26 }  // namespace _ipdltest
     27 }  // namespace mozilla