Index: src/plugin/PluginClass.cpp |
=================================================================== |
--- a/src/plugin/PluginClass.cpp |
+++ b/src/plugin/PluginClass.cpp |
@@ -1137,6 +1137,26 @@ |
return tab; |
} |
+CPluginTab* CPluginClass::GetTab(const std::wstring& url) |
+{ |
+ CPluginTab* tab = NULL; |
+ |
+ s_criticalSectionLocal.Lock(); |
+ { |
+ std::map<DWORD,CPluginClass*>::const_iterator it; |
+ for (it = s_threadInstances.begin(); it != s_threadInstances.end(); it++) |
+ { |
+ if (it->second->GetBrowserUrl() == url.c_str()) |
+ { |
+ return it->second->m_tab; |
+ } |
+ } |
+ } |
+ s_criticalSectionLocal.Unlock(); |
+ |
+ return tab; |
+} |
+ |
STDMETHODIMP CPluginClass::QueryStatus(const GUID* pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT* pCmdText) |
{ |