Index: src/plugin/PluginClass.h |
=================================================================== |
--- a/src/plugin/PluginClass.h |
+++ b/src/plugin/PluginClass.h |
@@ -79,15 +79,10 @@ |
CPluginClass(); |
~CPluginClass(); |
- HRESULT FinalConstruct(); |
- void FinalRelease(); |
- |
// IObjectWithSite |
- |
STDMETHOD(SetSite)(IUnknown *pUnkSite); |
// IOleCommandTarget |
- |
STDMETHOD(QueryStatus)(const GUID* pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT* pCmdText); |
STDMETHOD(Exec)(const GUID*, DWORD nCmdID, DWORD, VARIANTARG*, VARIANTARG* pvaOut); |
@@ -96,7 +91,6 @@ |
CPluginTab* GetTab(); |
void UpdateStatusBar(); |
- static DWORD WINAPI MainThreadProc(LPVOID pParam); |
private: |
@@ -108,9 +102,7 @@ |
public: |
HWND GetBrowserHWND() const; |
- HWND GetTabHWND() const; |
- CComQIPtr<IWebBrowser2> GetBrowser() const; |
- |
+ bool IsRootPageBrowser(IWebBrowser2*); |
static CPluginMimeFilterClient* s_mimeFilter; |
@@ -146,9 +138,7 @@ |
void ShowStatusBar(); |
bool IsStatusBarEnabled(); |
-public: |
- CComQIPtr<IWebBrowser2> m_webBrowser2; |
-private: |
+ IWebBrowser2* m_webBrowser2; |
sergei
2015/10/01 16:15:51
I really don't understand the reluctance to use sm
Oleksandr
2015/10/05 10:44:47
+1.
Eric
2015/11/18 13:57:31
My rule: Use them when you need them and don't use
|
HWND m_hBrowserWnd; |
HWND m_hTabWnd; |
HWND m_hStatusBarWnd; |
@@ -180,14 +170,10 @@ |
static HANDLE s_hMainThread; |
static bool s_isMainThreadDone; |
- static HANDLE GetMainThreadHandle(); |
- static bool IsMainThreadDone(HANDLE mainThread); |
- |
static HINSTANCE s_hUxtheme; |
static std::set<CPluginClass*> s_instances; |
static std::map<DWORD,CPluginClass*> s_threadInstances; |
static CComAutoCriticalSection s_criticalSectionLocal; |
- static CComAutoCriticalSection s_criticalSectionBrowser; |
static CComAutoCriticalSection s_criticalSectionWindow; |
// Async browser |