2009-06-30 18:51:05 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
* vim: sw=4 ts=4 et :
|
2012-05-21 11:12:37 +00:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2009-06-30 18:51:05 +00:00
|
|
|
|
2010-05-11 04:18:00 +00:00
|
|
|
#ifndef dom_plugins_PluginProcessChild_h
|
|
|
|
#define dom_plugins_PluginProcessChild_h 1
|
2009-06-30 18:51:05 +00:00
|
|
|
|
2010-05-11 04:18:00 +00:00
|
|
|
#include "mozilla/ipc/ProcessChild.h"
|
2009-09-09 06:31:35 +00:00
|
|
|
#include "mozilla/plugins/PluginModuleChild.h"
|
2009-06-30 18:51:05 +00:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace plugins {
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2010-05-11 04:18:00 +00:00
|
|
|
class PluginProcessChild : public mozilla::ipc::ProcessChild {
|
|
|
|
protected:
|
|
|
|
typedef mozilla::ipc::ProcessChild ProcessChild;
|
|
|
|
|
2009-06-30 18:51:05 +00:00
|
|
|
public:
|
2010-05-11 04:18:00 +00:00
|
|
|
PluginProcessChild(ProcessHandle parentHandle) : ProcessChild(parentHandle)
|
|
|
|
{ }
|
2009-06-30 18:51:05 +00:00
|
|
|
|
2010-05-11 04:18:00 +00:00
|
|
|
virtual ~PluginProcessChild()
|
|
|
|
{ }
|
|
|
|
|
2012-07-06 18:15:45 +00:00
|
|
|
virtual bool Init() MOZ_OVERRIDE;
|
|
|
|
virtual void CleanUp() MOZ_OVERRIDE;
|
2010-02-03 22:17:09 +00:00
|
|
|
|
2010-05-11 04:18:00 +00:00
|
|
|
protected:
|
|
|
|
static PluginProcessChild* current() {
|
|
|
|
return static_cast<PluginProcessChild*>(ProcessChild::current());
|
|
|
|
}
|
2009-06-30 18:51:05 +00:00
|
|
|
|
2010-05-11 04:18:00 +00:00
|
|
|
private:
|
2009-09-09 06:31:35 +00:00
|
|
|
PluginModuleChild mPlugin;
|
2009-06-30 18:51:05 +00:00
|
|
|
|
2010-05-11 04:18:00 +00:00
|
|
|
DISALLOW_EVIL_CONSTRUCTORS(PluginProcessChild);
|
2009-06-30 18:51:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace plugins
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2010-05-11 04:18:00 +00:00
|
|
|
#endif // ifndef dom_plugins_PluginProcessChild_h
|