Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 * vim: sw=4 ts=4 et :
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/. */
7 #ifndef dom_plugins_PluginProcessChild_h
8 #define dom_plugins_PluginProcessChild_h 1
10 #include "mozilla/ipc/ProcessChild.h"
11 #include "mozilla/plugins/PluginModuleChild.h"
13 namespace mozilla {
14 namespace plugins {
15 //-----------------------------------------------------------------------------
17 class PluginProcessChild : public mozilla::ipc::ProcessChild {
18 protected:
19 typedef mozilla::ipc::ProcessChild ProcessChild;
21 public:
22 PluginProcessChild(ProcessHandle parentHandle) : ProcessChild(parentHandle)
23 { }
25 virtual ~PluginProcessChild()
26 { }
28 virtual bool Init() MOZ_OVERRIDE;
29 virtual void CleanUp() MOZ_OVERRIDE;
31 protected:
32 static PluginProcessChild* current() {
33 return static_cast<PluginProcessChild*>(ProcessChild::current());
34 }
36 private:
37 PluginModuleChild mPlugin;
39 DISALLOW_EVIL_CONSTRUCTORS(PluginProcessChild);
40 };
42 } // namespace plugins
43 } // namespace mozilla
45 #endif // ifndef dom_plugins_PluginProcessChild_h