| OLD | NEW |
| 1 #include "PluginStdAfx.h" | 1 #include "PluginStdAfx.h" |
| 2 | 2 |
| 3 #include "PluginClient.h" | 3 #include "PluginClient.h" |
| 4 #include "PluginSettings.h" | 4 #include "PluginSettings.h" |
| 5 #include "PluginTab.h" | 5 #include "PluginTab.h" |
| 6 #include "AdblockPlusDomTraverser.h" | 6 #include "AdblockPlusDomTraverser.h" |
| 7 #include "PluginClass.h" | 7 #include "PluginClass.h" |
| 8 #include "PluginTabBase.h" | 8 #include "PluginTabBase.h" |
| 9 #include "PluginUtil.h" | 9 #include "PluginUtil.h" |
| 10 #include <dispex.h> | 10 #include <dispex.h> |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 pOleObj->GetClientSite(&pClientSite); | 201 pOleObj->GetClientSite(&pClientSite); |
| 202 if (pClientSite != NULL) | 202 if (pClientSite != NULL) |
| 203 { | 203 { |
| 204 CComPtr<IDocHostUIHandler> docHostUIHandler; | 204 CComPtr<IDocHostUIHandler> docHostUIHandler; |
| 205 pClientSite->QueryInterface(IID_IDocHostUIHandler, (void**)&docHostUIHandl
er); | 205 pClientSite->QueryInterface(IID_IDocHostUIHandler, (void**)&docHostUIHandl
er); |
| 206 if (docHostUIHandler != NULL) | 206 if (docHostUIHandler != NULL) |
| 207 { | 207 { |
| 208 docHostUIHandler->UpdateUI(); | 208 docHostUIHandler->UpdateUI(); |
| 209 } | 209 } |
| 210 } | 210 } |
| 211 | |
| 212 pDoc.Release(); | |
| 213 pDocDispatch.Release(); | |
| 214 } | 211 } |
| 215 } | 212 } |
| 216 | 213 |
| 217 std::wstring CPluginTabBase::GetDocumentDomain() | 214 std::wstring CPluginTabBase::GetDocumentDomain() |
| 218 { | 215 { |
| 219 std::wstring domain; | 216 std::wstring domain; |
| 220 | 217 |
| 221 m_criticalSection.Lock(); | 218 m_criticalSection.Lock(); |
| 222 { | 219 { |
| 223 domain = m_documentDomain; | 220 domain = m_documentDomain; |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 CPluginClient::LogPluginError(pluginError.GetErrorCode(), pluginError.
GetErrorId(), pluginError.GetErrorSubid(), pluginError.GetErrorDescription(), tr
ue, pluginError.GetProcessId(), pluginError.GetThreadId()); | 347 CPluginClient::LogPluginError(pluginError.GetErrorCode(), pluginError.
GetErrorId(), pluginError.GetErrorSubid(), pluginError.GetErrorDescription(), tr
ue, pluginError.GetProcessId(), pluginError.GetThreadId()); |
| 351 } | 348 } |
| 352 | 349 |
| 353 // Non-hanging sleep | 350 // Non-hanging sleep |
| 354 Sleep(50); | 351 Sleep(50); |
| 355 } | 352 } |
| 356 | 353 |
| 357 tabLoopIteration++; | 354 tabLoopIteration++; |
| 358 } | 355 } |
| 359 } | 356 } |
| OLD | NEW |