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

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

Issue 11612008: Bunch of tiny fixes (Closed)
Patch Set: Created Sept. 5, 2013, 10:38 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
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 #ifdef SUPPORT_CONFIG 5 #ifdef SUPPORT_CONFIG
6 #include "PluginConfig.h" 6 #include "PluginConfig.h"
7 #endif 7 #endif
8 #include "PluginTab.h" 8 #include "PluginTab.h"
9 #include "PluginDomTraverser.h" 9 #include "PluginDomTraverser.h"
10 #include "PluginClass.h" 10 #include "PluginClass.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 { 76 {
77 m_isActivated = true; 77 m_isActivated = true;
78 } 78 }
79 79
80 80
81 void CPluginTabBase::OnUpdate() 81 void CPluginTabBase::OnUpdate()
82 { 82 {
83 m_isActivated = true; 83 m_isActivated = true;
84 } 84 }
85 85
86 DWORD WINAPI FilterLoader(void* thisPtrVoid) 86 DWORD WINAPI FilterLoader(LPVOID threadParam)
Oleksandr 2013/09/05 22:47:40 http://codereview.adblockplus.org/11427013/diff/80
87 { 87 {
88 CPluginTabBase* thisPtr = (CPluginTabBase*)thisPtrVoid; 88 CPluginTabBase* tabBase = (CPluginTabBase*)threadParam;
89 thisPtr->m_filter->LoadHideFilters(CPluginClient::GetInstance()->GetElementHid ingSelectors(thisPtr->GetDocumentDomain().GetString())); 89 tabBase->m_filter->LoadHideFilters(CPluginClient::GetInstance()->GetElementHid ingSelectors(tabBase->GetDocumentDomain().GetString()));
90 SetEvent(thisPtr->m_filter->hideFiltersLoadedEvent); 90 SetEvent(tabBase->m_filter->hideFiltersLoadedEvent);
91 return 0; 91 return 0;
92 } 92 }
93 93
94 void CPluginTabBase::OnNavigate(const CString& url) 94 void CPluginTabBase::OnNavigate(const CString& url)
95 { 95 {
96 SetDocumentUrl(url); 96 SetDocumentUrl(url);
97 97
98 98
99 #ifdef SUPPORT_FRAME_CACHING 99 #ifdef SUPPORT_FRAME_CACHING
100 ClearFrameCache(GetDocumentDomain()); 100 ClearFrameCache(GetDocumentDomain());
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 380
381 // Non-hanging sleep 381 // Non-hanging sleep
382 Sleep(50); 382 Sleep(50);
383 } 383 }
384 384
385 tabLoopIteration++; 385 tabLoopIteration++;
386 } 386 }
387 387
388 return 0; 388 return 0;
389 } 389 }
OLDNEW

Powered by Google App Engine
This is Rietveld