dom/plugins/ipc/COMMessageFilter.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 /* 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