зеркало из https://github.com/mozilla/gecko-dev.git
Bug 909642. Don't include nsNPAPIPluginInstance in headers so much, since it pulls in lots of gunk. r=bsmedberg
This commit is contained in:
Родитель
45746b149c
Коммит
81c3bee6e8
|
@ -14,7 +14,7 @@ interface nsIDOMClientRect;
|
|||
interface nsIURI;
|
||||
|
||||
%{C++
|
||||
#include "nsNPAPIPluginInstance.h"
|
||||
class nsNPAPIPluginInstance;
|
||||
%}
|
||||
[ptr] native nsNPAPIPluginInstancePtr(nsNPAPIPluginInstance);
|
||||
|
||||
|
|
|
@ -120,6 +120,7 @@
|
|||
#include "nsINode.h"
|
||||
#include "nsINodeInfo.h"
|
||||
#include "nsIObjectLoadingContent.h"
|
||||
#include "nsNPAPIPluginInstance.h"
|
||||
#include "nsIObserver.h"
|
||||
#include "nsIObserverService.h"
|
||||
#include "nsIOfflineCacheUpdate.h"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "nsIObjectFrame.h"
|
||||
#include "nsIPermissionManager.h"
|
||||
#include "nsPluginHost.h"
|
||||
#include "nsPluginInstanceOwner.h"
|
||||
#include "nsJSNPRuntime.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsIScriptGlobalObject.h"
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include "nsIChannelEventSink.h"
|
||||
#include "nsIObjectLoadingContent.h"
|
||||
#include "nsIRunnable.h"
|
||||
#include "nsPluginInstanceOwner.h"
|
||||
#include "nsIThreadInternal.h"
|
||||
#include "nsIFrame.h"
|
||||
#include "nsIFrameLoader.h"
|
||||
|
@ -30,6 +29,7 @@ class AutoSetInstantiatingToFalse;
|
|||
class nsObjectFrame;
|
||||
class nsFrameLoader;
|
||||
class nsXULElement;
|
||||
class nsPluginInstanceOwner;
|
||||
|
||||
class nsObjectLoadingContent : public nsImageLoadingContent
|
||||
, public nsIStreamListener
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
#include "nsIObserver.h"
|
||||
#include "nsWrapperCache.h"
|
||||
#include "nsPluginTags.h"
|
||||
#include "nsPIDOMWindow.h"
|
||||
|
||||
class nsPIDOMWindow;
|
||||
class nsPluginElement;
|
||||
class nsMimeType;
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "mozilla/PluginPRLibrary.h"
|
||||
#include "nsNPAPIPluginInstance.h"
|
||||
|
||||
// Some plugins on Windows, notably Quake Live, implement NP_Initialize using
|
||||
// cdecl instead of the documented stdcall. In order to work around this,
|
||||
|
|
|
@ -11,7 +11,7 @@ interface nsIDocument;
|
|||
|
||||
%{C++
|
||||
#include "npapi.h"
|
||||
#include "nsNPAPIPluginInstance.h"
|
||||
class nsNPAPIPluginInstance;
|
||||
class nsPluginEvent;
|
||||
%}
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include "nsIOutputStream.h"
|
||||
#include "nsIPluginInstanceOwner.h"
|
||||
#include "nsString.h"
|
||||
#include "nsNPAPIPluginInstance.h"
|
||||
#include "nsIAsyncVerifyRedirectCallback.h"
|
||||
#include "mozilla/PluginLibrary.h"
|
||||
|
||||
|
@ -23,6 +22,8 @@
|
|||
|
||||
class nsPluginStreamListenerPeer;
|
||||
class nsNPAPIPluginStreamListener;
|
||||
class nsNPAPIPluginInstance;
|
||||
class nsIChannel;
|
||||
|
||||
class nsNPAPIStreamWrapper
|
||||
{
|
||||
|
|
|
@ -3651,6 +3651,18 @@ PRCList nsPluginDestroyRunnable::sRunnableListHead =
|
|||
PRCList PluginDestructionGuard::sListHead =
|
||||
PR_INIT_STATIC_CLIST(&PluginDestructionGuard::sListHead);
|
||||
|
||||
PluginDestructionGuard::PluginDestructionGuard(nsNPAPIPluginInstance *aInstance)
|
||||
: mInstance(aInstance)
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
PluginDestructionGuard::PluginDestructionGuard(NPP npp)
|
||||
: mInstance(npp ? static_cast<nsNPAPIPluginInstance*>(npp->ndata) : nullptr)
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
PluginDestructionGuard::~PluginDestructionGuard()
|
||||
{
|
||||
NS_ASSERTION(NS_IsMainThread(), "Should be on the main thread");
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#include "prlink.h"
|
||||
#include "prclist.h"
|
||||
#include "npapi.h"
|
||||
#include "nsNPAPIPluginInstance.h"
|
||||
#include "nsIPluginTag.h"
|
||||
#include "nsPluginsDir.h"
|
||||
#include "nsPluginDirServiceProvider.h"
|
||||
|
@ -37,6 +36,11 @@ class nsIChannel;
|
|||
class nsPluginNativeWindow;
|
||||
class nsObjectLoadingContent;
|
||||
class nsPluginInstanceOwner;
|
||||
class nsNPAPIPluginInstance;
|
||||
class nsNPAPIPluginStreamListener;
|
||||
class nsIPluginInstanceOwner;
|
||||
class nsIInputStream;
|
||||
class nsIStreamListener;
|
||||
|
||||
class nsInvalidPluginTag : public nsISupports
|
||||
{
|
||||
|
@ -303,17 +307,9 @@ private:
|
|||
class MOZ_STACK_CLASS PluginDestructionGuard : protected PRCList
|
||||
{
|
||||
public:
|
||||
PluginDestructionGuard(nsNPAPIPluginInstance *aInstance)
|
||||
: mInstance(aInstance)
|
||||
{
|
||||
Init();
|
||||
}
|
||||
PluginDestructionGuard(nsNPAPIPluginInstance *aInstance);
|
||||
|
||||
PluginDestructionGuard(NPP npp)
|
||||
: mInstance(npp ? static_cast<nsNPAPIPluginInstance*>(npp->ndata) : nullptr)
|
||||
{
|
||||
Init();
|
||||
}
|
||||
PluginDestructionGuard(NPP npp);
|
||||
|
||||
~PluginDestructionGuard();
|
||||
|
||||
|
|
|
@ -12,12 +12,13 @@
|
|||
#include "nsCOMPtr.h"
|
||||
#include "nsCOMArray.h"
|
||||
#include "nsIPluginTag.h"
|
||||
#include "nsNPAPIPluginInstance.h"
|
||||
#include "nsITimer.h"
|
||||
#include "nsStringGlue.h"
|
||||
|
||||
class nsPluginHost;
|
||||
struct PRLibrary;
|
||||
struct nsPluginInfo;
|
||||
class nsNPAPIPlugin;
|
||||
|
||||
// A linked-list of plugin information that is used for instantiating plugins
|
||||
// and reflecting plugin information into JavaScript.
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include "gfxContext.h"
|
||||
#include "gfxColor.h"
|
||||
#include "gfxUtils.h"
|
||||
#include "nsNPAPIPluginInstance.h"
|
||||
#include "Layers.h"
|
||||
#include "SharedTextureImage.h"
|
||||
#include "GLContext.h"
|
||||
|
|
Загрузка…
Ссылка в новой задаче