2009-06-30 11:51:05 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
* vim: sw=4 ts=4 et :
|
2012-05-21 04:12:37 -07: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 11:51:05 -07:00
|
|
|
|
2009-09-08 23:31:35 -07:00
|
|
|
#ifndef dom_plugins_PluginModuleParent_h
|
|
|
|
#define dom_plugins_PluginModuleParent_h 1
|
2009-06-30 11:51:05 -07:00
|
|
|
|
|
|
|
#include <cstring>
|
|
|
|
|
2009-07-02 09:54:22 -07:00
|
|
|
#include "base/basictypes.h"
|
|
|
|
|
2009-06-30 11:51:05 -07:00
|
|
|
#include "prlink.h"
|
|
|
|
|
|
|
|
#include "npapi.h"
|
|
|
|
#include "npfunctions.h"
|
|
|
|
|
|
|
|
#include "base/string_util.h"
|
|
|
|
|
2010-11-08 18:48:59 -08:00
|
|
|
#include "mozilla/FileUtils.h"
|
2009-10-27 12:51:12 -07:00
|
|
|
#include "mozilla/PluginLibrary.h"
|
2009-09-09 15:59:06 -07:00
|
|
|
#include "mozilla/plugins/PPluginModuleParent.h"
|
2009-09-08 23:31:35 -07:00
|
|
|
#include "mozilla/plugins/PluginInstanceParent.h"
|
2009-06-30 11:51:05 -07:00
|
|
|
#include "mozilla/plugins/PluginProcessParent.h"
|
2010-03-23 07:30:51 -07:00
|
|
|
#include "mozilla/plugins/PluginIdentifierParent.h"
|
2009-06-30 11:51:05 -07:00
|
|
|
|
2009-07-01 14:19:32 -07:00
|
|
|
#include "nsAutoPtr.h"
|
2010-03-23 07:30:51 -07:00
|
|
|
#include "nsDataHashtable.h"
|
2009-09-14 13:01:31 -07:00
|
|
|
#include "nsHashKeys.h"
|
2010-01-13 17:20:00 -08:00
|
|
|
#include "nsIFileStreams.h"
|
2009-07-01 14:19:32 -07:00
|
|
|
|
2012-07-03 04:49:23 -07:00
|
|
|
#ifdef MOZ_CRASHREPORTER
|
|
|
|
#include "nsExceptionHandler.h"
|
|
|
|
#endif
|
|
|
|
|
2009-06-30 11:51:05 -07:00
|
|
|
namespace mozilla {
|
2011-06-08 12:56:31 -07:00
|
|
|
namespace dom {
|
|
|
|
class PCrashReporterParent;
|
|
|
|
class CrashReporterParent;
|
|
|
|
}
|
|
|
|
|
2009-06-30 11:51:05 -07:00
|
|
|
namespace plugins {
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2009-12-03 00:16:14 -08:00
|
|
|
class BrowserStreamParent;
|
|
|
|
|
2009-06-30 11:51:05 -07:00
|
|
|
/**
|
2009-09-08 23:31:35 -07:00
|
|
|
* PluginModuleParent
|
2009-06-30 11:51:05 -07:00
|
|
|
*
|
|
|
|
* This class implements the NPP API from the perspective of the rest
|
|
|
|
* of Gecko, forwarding NPP calls along to the child process that is
|
|
|
|
* actually running the plugin.
|
|
|
|
*
|
|
|
|
* This class /also/ implements a version of the NPN API, because the
|
|
|
|
* child process needs to make these calls back into Gecko proper.
|
|
|
|
* This class is responsible for "actually" making those function calls.
|
|
|
|
*/
|
2012-07-03 04:49:23 -07:00
|
|
|
class PluginModuleParent
|
|
|
|
: public PPluginModuleParent
|
|
|
|
, public PluginLibrary
|
|
|
|
#ifdef MOZ_CRASHREPORTER_INJECTOR
|
|
|
|
, public CrashReporter::InjectorCrashCallback
|
|
|
|
#endif
|
2009-06-30 11:51:05 -07:00
|
|
|
{
|
|
|
|
private:
|
2009-10-27 12:51:12 -07:00
|
|
|
typedef mozilla::PluginLibrary PluginLibrary;
|
2011-06-08 12:56:31 -07:00
|
|
|
typedef mozilla::dom::PCrashReporterParent PCrashReporterParent;
|
|
|
|
typedef mozilla::dom::CrashReporterParent CrashReporterParent;
|
2009-07-02 09:54:22 -07:00
|
|
|
|
|
|
|
protected:
|
2010-03-23 07:30:51 -07:00
|
|
|
|
|
|
|
virtual PPluginIdentifierParent*
|
|
|
|
AllocPPluginIdentifier(const nsCString& aString,
|
2011-06-14 12:49:48 -07:00
|
|
|
const int32_t& aInt,
|
|
|
|
const bool& aTemporary);
|
2010-03-23 07:30:51 -07:00
|
|
|
|
|
|
|
virtual bool
|
|
|
|
DeallocPPluginIdentifier(PPluginIdentifierParent* aActor);
|
|
|
|
|
2009-09-09 15:59:06 -07:00
|
|
|
PPluginInstanceParent*
|
2009-09-22 10:31:11 -07:00
|
|
|
AllocPPluginInstance(const nsCString& aMimeType,
|
|
|
|
const uint16_t& aMode,
|
2010-11-08 18:49:00 -08:00
|
|
|
const InfallibleTArray<nsCString>& aNames,
|
|
|
|
const InfallibleTArray<nsCString>& aValues,
|
2009-09-22 10:31:11 -07:00
|
|
|
NPError* rv);
|
2009-07-02 09:54:22 -07:00
|
|
|
|
2009-09-17 16:09:20 -07:00
|
|
|
virtual bool
|
2009-12-03 00:16:14 -08:00
|
|
|
DeallocPPluginInstance(PPluginInstanceParent* aActor);
|
2009-06-30 11:51:05 -07:00
|
|
|
|
|
|
|
public:
|
2011-04-07 17:13:59 -07:00
|
|
|
// aFilePath is UTF8, not native!
|
2009-09-08 23:31:35 -07:00
|
|
|
PluginModuleParent(const char* aFilePath);
|
2009-12-11 12:48:37 -08:00
|
|
|
virtual ~PluginModuleParent();
|
2009-12-04 10:24:57 -08:00
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual void SetPlugin(nsNPAPIPlugin* plugin) MOZ_OVERRIDE
|
2009-12-16 12:08:45 -08:00
|
|
|
{
|
|
|
|
mPlugin = plugin;
|
|
|
|
}
|
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual void ActorDestroy(ActorDestroyReason why) MOZ_OVERRIDE;
|
2009-12-03 12:31:52 -08:00
|
|
|
|
2009-06-30 11:51:05 -07:00
|
|
|
/**
|
|
|
|
* LoadModule
|
|
|
|
*
|
2009-10-27 12:51:12 -07:00
|
|
|
* This may or may not launch a plugin child process,
|
2009-06-30 11:51:05 -07:00
|
|
|
* and may or may not be very expensive.
|
|
|
|
*/
|
2009-10-27 12:51:12 -07:00
|
|
|
static PluginLibrary* LoadModule(const char* aFilePath);
|
2009-06-30 11:51:05 -07:00
|
|
|
|
2010-02-11 12:32:18 -08:00
|
|
|
const NPNetscapeFuncs* GetNetscapeFuncs() {
|
|
|
|
return mNPNIface;
|
|
|
|
}
|
|
|
|
|
2010-04-28 08:01:09 -07:00
|
|
|
PluginProcessParent* Process() const { return mSubprocess; }
|
2010-02-11 13:22:44 -08:00
|
|
|
base::ProcessHandle ChildProcessHandle() { return mSubprocess->GetChildProcessHandle(); }
|
|
|
|
|
2010-03-07 12:16:02 -08:00
|
|
|
bool OkToCleanup() const {
|
|
|
|
return !IsOnCxxStack();
|
|
|
|
}
|
|
|
|
|
2011-06-14 12:49:48 -07:00
|
|
|
/**
|
|
|
|
* Get an identifier actor for this NPIdentifier. If this is a temporary
|
|
|
|
* identifier, the temporary refcount is increased by one. This method
|
|
|
|
* is intended only for use by StackIdentifier and the scriptable
|
|
|
|
* Enumerate hook.
|
|
|
|
*/
|
|
|
|
PluginIdentifierParent*
|
|
|
|
GetIdentifierForNPIdentifier(NPP npp, NPIdentifier aIdentifier);
|
2010-03-23 07:30:51 -07:00
|
|
|
|
2011-05-18 04:57:08 -07:00
|
|
|
void ProcessRemoteNativeEventsInRPCCall();
|
|
|
|
|
2010-02-11 12:32:18 -08:00
|
|
|
protected:
|
2010-03-10 23:35:31 -08:00
|
|
|
virtual mozilla::ipc::RPCChannel::RacyRPCPolicy
|
2012-07-06 11:15:45 -07:00
|
|
|
MediateRPCRace(const Message& parent, const Message& child) MOZ_OVERRIDE
|
2010-03-10 23:35:31 -08:00
|
|
|
{
|
|
|
|
return MediateRace(parent, child);
|
|
|
|
}
|
|
|
|
|
2010-03-26 13:07:37 -07:00
|
|
|
virtual bool RecvXXX_HACK_FIXME_cjones(Shmem& mem) { NS_RUNTIMEABORT("not reached"); return false; }
|
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual bool ShouldContinueFromReplyTimeout() MOZ_OVERRIDE;
|
2010-02-11 12:32:18 -08:00
|
|
|
|
2010-11-08 18:48:59 -08:00
|
|
|
virtual bool
|
2012-07-06 11:15:45 -07:00
|
|
|
RecvBackUpXResources(const FileDescriptor& aXSocketFd) MOZ_OVERRIDE;
|
2010-11-08 18:48:59 -08:00
|
|
|
|
2009-10-08 00:54:16 -07:00
|
|
|
virtual bool
|
|
|
|
AnswerNPN_UserAgent(nsCString* userAgent);
|
|
|
|
|
2009-12-01 13:27:13 -08:00
|
|
|
virtual bool
|
|
|
|
AnswerNPN_GetValue_WithBoolReturn(const NPNVariable& aVariable,
|
|
|
|
NPError* aError,
|
|
|
|
bool* aBoolVal);
|
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual bool AnswerProcessSomeEvents() MOZ_OVERRIDE;
|
2010-02-16 10:44:25 -08:00
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual bool
|
|
|
|
RecvProcessNativeEventsInRPCCall() MOZ_OVERRIDE;
|
2010-04-30 11:42:51 -07:00
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual bool
|
2010-08-13 09:45:50 -07:00
|
|
|
RecvPluginShowWindow(const uint32_t& aWindowId, const bool& aModal,
|
|
|
|
const int32_t& aX, const int32_t& aY,
|
2012-07-06 11:15:45 -07:00
|
|
|
const size_t& aWidth, const size_t& aHeight) MOZ_OVERRIDE;
|
2010-08-13 09:45:50 -07:00
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual bool
|
|
|
|
RecvPluginHideWindow(const uint32_t& aWindowId) MOZ_OVERRIDE;
|
2010-08-13 09:45:50 -07:00
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual PCrashReporterParent*
|
2011-06-08 12:56:31 -07:00
|
|
|
AllocPCrashReporter(mozilla::dom::NativeThreadId* id,
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t* processType) MOZ_OVERRIDE;
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual bool
|
|
|
|
DeallocPCrashReporter(PCrashReporterParent* actor) MOZ_OVERRIDE;
|
2011-06-08 12:56:31 -07:00
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual bool
|
|
|
|
RecvSetCursor(const NSCursorInfo& aCursorInfo) MOZ_OVERRIDE;
|
2011-05-23 23:58:28 -07:00
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual bool
|
|
|
|
RecvShowCursor(const bool& aShow) MOZ_OVERRIDE;
|
2011-05-23 23:58:28 -07:00
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual bool
|
|
|
|
RecvPushCursor(const NSCursorInfo& aCursorInfo) MOZ_OVERRIDE;
|
2011-05-23 23:58:28 -07:00
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual bool
|
|
|
|
RecvPopCursor() MOZ_OVERRIDE;
|
2011-05-23 23:58:28 -07:00
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual bool
|
|
|
|
RecvGetNativeCursorsSupported(bool* supported) MOZ_OVERRIDE;
|
2011-05-23 23:58:28 -07:00
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual bool
|
2011-07-26 09:55:58 -07:00
|
|
|
RecvNPN_SetException(PPluginScriptableObjectParent* aActor,
|
2012-07-06 11:15:45 -07:00
|
|
|
const nsCString& aMessage) MOZ_OVERRIDE;
|
2011-07-26 09:55:58 -07:00
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual bool
|
|
|
|
RecvNPN_ReloadPlugins(const bool& aReloadPages) MOZ_OVERRIDE;
|
2012-05-30 07:23:03 -07:00
|
|
|
|
2009-09-23 00:12:52 -07:00
|
|
|
static PluginInstanceParent* InstCast(NPP instance);
|
|
|
|
static BrowserStreamParent* StreamCast(NPP instance, NPStream* s);
|
|
|
|
|
2009-06-30 11:51:05 -07:00
|
|
|
private:
|
2009-07-02 09:54:22 -07:00
|
|
|
void SetPluginFuncs(NPPluginFuncs* aFuncs);
|
|
|
|
|
2009-06-30 11:51:05 -07:00
|
|
|
// Implement the module-level functions from NPAPI; these are
|
|
|
|
// normally resolved directly from the DSO.
|
2009-07-02 09:54:22 -07:00
|
|
|
#ifdef OS_LINUX
|
2009-06-30 11:51:05 -07:00
|
|
|
NPError NP_Initialize(const NPNetscapeFuncs* npnIface,
|
|
|
|
NPPluginFuncs* nppIface);
|
2009-07-02 09:54:22 -07:00
|
|
|
#else
|
|
|
|
NPError NP_Initialize(const NPNetscapeFuncs* npnIface);
|
|
|
|
NPError NP_GetEntryPoints(NPPluginFuncs* nppIface);
|
|
|
|
#endif
|
2009-06-30 11:51:05 -07:00
|
|
|
|
|
|
|
// NPP-like API that Gecko calls are trampolined into. These
|
|
|
|
// messages then get forwarded along to the plugin instance,
|
|
|
|
// and then eventually the child process.
|
|
|
|
|
2009-09-14 11:56:23 -07:00
|
|
|
static NPError NPP_Destroy(NPP instance, NPSavedData** save);
|
2009-06-30 11:51:05 -07:00
|
|
|
|
2009-09-14 11:56:23 -07:00
|
|
|
static NPError NPP_SetWindow(NPP instance, NPWindow* window);
|
|
|
|
static NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream,
|
|
|
|
NPBool seekable, uint16_t* stype);
|
2009-08-18 13:20:03 -07:00
|
|
|
static NPError NPP_DestroyStream(NPP instance,
|
|
|
|
NPStream* stream, NPReason reason);
|
|
|
|
static int32_t NPP_WriteReady(NPP instance, NPStream* stream);
|
|
|
|
static int32_t NPP_Write(NPP instance, NPStream* stream,
|
|
|
|
int32_t offset, int32_t len, void* buffer);
|
|
|
|
static void NPP_StreamAsFile(NPP instance,
|
|
|
|
NPStream* stream, const char* fname);
|
2009-09-14 11:56:23 -07:00
|
|
|
static void NPP_Print(NPP instance, NPPrint* platformPrint);
|
|
|
|
static int16_t NPP_HandleEvent(NPP instance, void* event);
|
|
|
|
static void NPP_URLNotify(NPP instance, const char* url,
|
|
|
|
NPReason reason, void* notifyData);
|
|
|
|
static NPError NPP_GetValue(NPP instance,
|
|
|
|
NPPVariable variable, void *ret_value);
|
|
|
|
static NPError NPP_SetValue(NPP instance, NPNVariable variable,
|
|
|
|
void *value);
|
2011-01-05 11:44:21 -08:00
|
|
|
static void NPP_URLRedirectNotify(NPP instance, const char* url,
|
|
|
|
int32_t status, void* notifyData);
|
2009-06-30 11:51:05 -07:00
|
|
|
|
2009-10-27 12:51:12 -07:00
|
|
|
virtual bool HasRequiredFunctions();
|
2010-09-10 11:28:52 -07:00
|
|
|
virtual nsresult AsyncSetWindow(NPP instance, NPWindow* window);
|
2012-02-08 07:34:27 -08:00
|
|
|
virtual nsresult GetImageContainer(NPP instance, mozilla::layers::ImageContainer** aContainer);
|
2011-02-22 21:38:09 -08:00
|
|
|
virtual nsresult GetImageSize(NPP instance, nsIntSize* aSize);
|
2012-08-01 13:34:08 -07:00
|
|
|
virtual bool IsOOP() MOZ_OVERRIDE { return true; }
|
2012-07-06 11:15:45 -07:00
|
|
|
virtual nsresult SetBackgroundUnknown(NPP instance) MOZ_OVERRIDE;
|
2011-02-16 14:43:31 -08:00
|
|
|
virtual nsresult BeginUpdateBackground(NPP instance,
|
|
|
|
const nsIntRect& aRect,
|
2012-07-06 11:15:45 -07:00
|
|
|
gfxContext** aCtx) MOZ_OVERRIDE;
|
2011-02-16 14:43:31 -08:00
|
|
|
virtual nsresult EndUpdateBackground(NPP instance,
|
|
|
|
gfxContext* aCtx,
|
2012-07-06 11:15:45 -07:00
|
|
|
const nsIntRect& aRect) MOZ_OVERRIDE;
|
2009-06-30 11:51:05 -07:00
|
|
|
|
2011-11-10 16:17:46 -08:00
|
|
|
#if defined(XP_UNIX) && !defined(XP_MACOSX) && !defined(MOZ_WIDGET_GONK)
|
2009-10-27 12:51:12 -07:00
|
|
|
virtual nsresult NP_Initialize(NPNetscapeFuncs* bFuncs, NPPluginFuncs* pFuncs, NPError* error);
|
2009-07-02 09:54:22 -07:00
|
|
|
#else
|
2009-10-27 12:51:12 -07:00
|
|
|
virtual nsresult NP_Initialize(NPNetscapeFuncs* bFuncs, NPError* error);
|
2009-07-02 09:54:22 -07:00
|
|
|
#endif
|
2009-10-27 12:51:12 -07:00
|
|
|
virtual nsresult NP_Shutdown(NPError* error);
|
2010-01-29 12:18:50 -08:00
|
|
|
virtual nsresult NP_GetMIMEDescription(const char** mimeDesc);
|
2009-10-27 12:51:12 -07:00
|
|
|
virtual nsresult NP_GetValue(void *future, NPPVariable aVariable,
|
|
|
|
void *aValue, NPError* error);
|
2009-12-23 13:12:00 -08:00
|
|
|
#if defined(XP_WIN) || defined(XP_MACOSX) || defined(XP_OS2)
|
2009-10-27 12:51:12 -07:00
|
|
|
virtual nsresult NP_GetEntryPoints(NPPluginFuncs* pFuncs, NPError* error);
|
|
|
|
#endif
|
|
|
|
virtual nsresult NPP_New(NPMIMEType pluginType, NPP instance,
|
|
|
|
uint16_t mode, int16_t argc, char* argn[],
|
|
|
|
char* argv[], NPSavedData* saved,
|
|
|
|
NPError* error);
|
2011-02-08 14:16:07 -08:00
|
|
|
virtual nsresult NPP_ClearSiteData(const char* site, uint64_t flags,
|
|
|
|
uint64_t maxAge);
|
|
|
|
virtual nsresult NPP_GetSitesWithData(InfallibleTArray<nsCString>& result);
|
|
|
|
|
2011-06-30 09:46:26 -07:00
|
|
|
#if defined(XP_MACOSX)
|
2011-09-28 23:19:26 -07:00
|
|
|
virtual nsresult IsRemoteDrawingCoreAnimation(NPP instance, bool *aDrawing);
|
2011-06-30 09:46:26 -07:00
|
|
|
#endif
|
2011-08-29 09:26:24 -07:00
|
|
|
#if defined(MOZ_WIDGET_QT) && (MOZ_PLATFORM_MAEMO == 6)
|
|
|
|
virtual nsresult HandleGUIEvent(NPP instance, const nsGUIEvent& anEvent,
|
|
|
|
bool* handled);
|
|
|
|
#endif
|
2011-06-30 09:46:26 -07:00
|
|
|
|
2009-10-27 12:51:12 -07:00
|
|
|
private:
|
2011-06-08 12:56:31 -07:00
|
|
|
CrashReporterParent* CrashReporter();
|
|
|
|
|
|
|
|
#ifdef MOZ_CRASHREPORTER
|
2012-07-10 19:20:05 -07:00
|
|
|
void ProcessFirstMinidump();
|
2011-06-08 12:56:31 -07:00
|
|
|
void WriteExtraDataForMinidump(CrashReporter::AnnotationTable& notes);
|
|
|
|
#endif
|
2010-02-11 12:32:18 -08:00
|
|
|
void CleanupFromTimeout();
|
|
|
|
static int TimeoutChanged(const char* aPref, void* aModule);
|
2010-03-07 12:16:02 -08:00
|
|
|
void NotifyPluginCrashed();
|
2010-02-11 12:32:18 -08:00
|
|
|
|
2009-11-09 14:56:55 -08:00
|
|
|
PluginProcessParent* mSubprocess;
|
2010-03-30 17:24:47 -07:00
|
|
|
// the plugin thread in mSubprocess
|
|
|
|
NativeThreadId mPluginThread;
|
2009-12-03 12:31:52 -08:00
|
|
|
bool mShutdown;
|
2011-02-08 14:16:07 -08:00
|
|
|
bool mClearSiteDataSupported;
|
|
|
|
bool mGetSitesWithDataSupported;
|
2009-10-27 12:51:12 -07:00
|
|
|
const NPNetscapeFuncs* mNPNIface;
|
2012-03-21 11:07:31 -07:00
|
|
|
nsDataHashtable<nsPtrHashKey<void>, PluginIdentifierParent*> mIdentifiers;
|
2009-12-16 12:08:45 -08:00
|
|
|
nsNPAPIPlugin* mPlugin;
|
2010-03-24 14:22:03 -07:00
|
|
|
ScopedRunnableMethodFactory<PluginModuleParent> mTaskFactory;
|
|
|
|
nsString mPluginDumpID;
|
|
|
|
nsString mBrowserDumpID;
|
|
|
|
nsString mHangID;
|
2012-07-25 05:38:43 -07:00
|
|
|
#ifdef XP_WIN
|
2012-08-09 03:36:30 -07:00
|
|
|
InfallibleTArray<float> mPluginCpuUsageOnHang;
|
2012-07-25 05:38:43 -07:00
|
|
|
#endif
|
2010-04-20 07:52:19 -07:00
|
|
|
|
2010-11-08 18:48:59 -08:00
|
|
|
#ifdef MOZ_X11
|
|
|
|
// Dup of plugin's X socket, used to scope its resources to this
|
|
|
|
// object instead of the plugin process's lifetime
|
|
|
|
ScopedClose mPluginXSocketFdDup;
|
|
|
|
#endif
|
2011-06-08 12:56:31 -07:00
|
|
|
|
|
|
|
friend class mozilla::dom::CrashReporterParent;
|
2012-07-03 04:49:23 -07:00
|
|
|
|
|
|
|
#ifdef MOZ_CRASHREPORTER_INJECTOR
|
|
|
|
void InitializeInjector();
|
|
|
|
|
2012-07-06 11:15:45 -07:00
|
|
|
void OnCrash(DWORD processID) MOZ_OVERRIDE;
|
2012-07-03 04:49:23 -07:00
|
|
|
|
|
|
|
DWORD mFlashProcess1;
|
|
|
|
DWORD mFlashProcess2;
|
|
|
|
#endif
|
2009-06-30 11:51:05 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace plugins
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2009-09-08 23:31:35 -07:00
|
|
|
#endif // ifndef dom_plugins_PluginModuleParent_h
|