dom/plugins/ipc/COMMessageFilter.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #ifndef mozilla_plugins_COMMessageFilter_h
     6 #define mozilla_plugins_COMMessageFilter_h
     8 #include <objidl.h>
     9 #include "nsISupportsImpl.h"
    10 #include "nsAutoPtr.h"
    12 namespace mozilla {
    13 namespace plugins {
    15 class PluginModuleChild;
    17 class COMMessageFilter MOZ_FINAL : public IMessageFilter
    18 {
    19 public:
    20   static void Initialize(PluginModuleChild* plugin);
    22   COMMessageFilter(PluginModuleChild* plugin)
    23     : mPlugin(plugin)
    24   { }
    26   HRESULT WINAPI QueryInterface(REFIID riid, void** ppv);
    27   DWORD WINAPI AddRef();
    28   DWORD WINAPI Release();
    30   DWORD WINAPI HandleInComingCall(DWORD dwCallType,
    31                                   HTASK htaskCaller,
    32                                   DWORD dwTickCount,
    33                                   LPINTERFACEINFO lpInterfaceInfo);
    34   DWORD WINAPI RetryRejectedCall(HTASK htaskCallee,
    35                                  DWORD dwTickCount,
    36                                  DWORD dwRejectType);
    37   DWORD WINAPI MessagePending(HTASK htaskCallee,
    38                               DWORD dwTickCount,
    39                               DWORD dwPendingType);
    41 private:
    42   nsAutoRefCnt mRefCnt;
    43   PluginModuleChild* mPlugin;
    44   nsRefPtr<IMessageFilter> mPreviousFilter;
    45 };
    47 } // namespace plugins
    48 } // namespace mozilla
    50 #endif // COMMessageFilter_h

mercurial