RemoteWorkerNonLifeCycleOpControllerParent.h (1154B)
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 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #ifndef mozilla_dom_RemoteWorkerNonLifeCycleOpControllerParent_h 6 #define mozilla_dom_RemoteWorkerNonLifeCycleOpControllerParent_h 7 8 #include "mozilla/dom/PRemoteWorkerNonLifeCycleOpControllerParent.h" 9 10 using mozilla::ipc::IPCResult; 11 12 namespace mozilla::dom { 13 14 class RemoteWorkerController; 15 16 class RemoteWorkerNonLifeCycleOpControllerParent final 17 : public PRemoteWorkerNonLifeCycleOpControllerParent { 18 public: 19 NS_INLINE_DECL_REFCOUNTING(RemoteWorkerNonLifeCycleOpControllerParent, 20 override); 21 22 explicit RemoteWorkerNonLifeCycleOpControllerParent( 23 RemoteWorkerController* aRemoteWorkerController); 24 25 IPCResult RecvTerminated(); 26 27 IPCResult RecvError(const ErrorValue& aError); 28 29 void Shutdown(); 30 31 private: 32 ~RemoteWorkerNonLifeCycleOpControllerParent(); 33 34 RefPtr<RemoteWorkerController> mController; 35 }; 36 37 } // namespace mozilla::dom 38 39 #endif // mozilla_dom_RemoteWorkerNonLifeCycleOpControllerParent_h