dom/plugins/ipc/PluginProcessChild.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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

mercurial