Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/plugin/PluginTabBase.cpp

Issue 6299667012780032: Issues #696,1231,1264,1265 - Improve handling in PassthroughApp (Closed)
Patch Set: rebase Created Oct. 17, 2014, 12:51 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/plugin/PluginFilter.cpp ('k') | src/plugin/PluginWbPassThrough.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/plugin/PluginFilter.cpp ('k') | src/plugin/PluginWbPassThrough.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld