dom/plugins/ipc/COMMessageFilter.h

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:14e605586484
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/. */
4
5 #ifndef mozilla_plugins_COMMessageFilter_h
6 #define mozilla_plugins_COMMessageFilter_h
7
8 #include <objidl.h>
9 #include "nsISupportsImpl.h"
10 #include "nsAutoPtr.h"
11
12 namespace mozilla {
13 namespace plugins {
14
15 class PluginModuleChild;
16
17 class COMMessageFilter MOZ_FINAL : public IMessageFilter
18 {
19 public:
20 static void Initialize(PluginModuleChild* plugin);
21
22 COMMessageFilter(PluginModuleChild* plugin)
23 : mPlugin(plugin)
24 { }
25
26 HRESULT WINAPI QueryInterface(REFIID riid, void** ppv);
27 DWORD WINAPI AddRef();
28 DWORD WINAPI Release();
29
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);
40
41 private:
42 nsAutoRefCnt mRefCnt;
43 PluginModuleChild* mPlugin;
44 nsRefPtr<IMessageFilter> mPreviousFilter;
45 };
46
47 } // namespace plugins
48 } // namespace mozilla
49
50 #endif // COMMessageFilter_h

mercurial