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

Delta Between Two Patch Sets: Shared/PluginTabBase.cpp

Issue 9998007: Initial libadblockplus integration (Closed)
Left Patch Set: Subscription changes and filter management cleanup Created April 5, 2013, 1:56 a.m.
Right Patch Set: Whitelisting management Created April 11, 2013, 9:06 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « Shared/PluginSettings.cpp ('k') | Shared/PluginTypedef.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
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 "PluginDictionary.h" 5 #include "PluginDictionary.h"
6 #ifdef SUPPORT_CONFIG 6 #ifdef SUPPORT_CONFIG
7 #include "PluginConfig.h" 7 #include "PluginConfig.h"
8 #endif 8 #endif
9 #include "PluginTab.h" 9 #include "PluginTab.h"
10 #include "PluginDomTraverser.h" 10 #include "PluginDomTraverser.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 CString domain; 260 CString domain;
261 261
262 m_criticalSection.Lock(); 262 m_criticalSection.Lock();
263 { 263 {
264 m_documentUrl = url; 264 m_documentUrl = url;
265 m_documentDomain = CPluginClient::ExtractDomain(url); 265 m_documentDomain = CPluginClient::ExtractDomain(url);
266 266
267 domain = m_documentDomain; 267 domain = m_documentDomain;
268 } 268 }
269 m_criticalSection.Unlock(); 269 m_criticalSection.Unlock();
270
271 #ifdef SUPPORT_WHITELIST
272 CPluginSettings::GetInstance()->AddDomainToHistory(domain);
273 #endif
274 } 270 }
275 271
276 CString CPluginTabBase::GetDocumentUrl() 272 CString CPluginTabBase::GetDocumentUrl()
277 { 273 {
278 CString url; 274 CString url;
279 275
280 m_criticalSection.Lock(); 276 m_criticalSection.Lock();
281 { 277 {
282 url = m_documentUrl; 278 url = m_documentUrl;
283 } 279 }
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 440
445 // Non-hanging sleep 441 // Non-hanging sleep
446 Sleep(50); 442 Sleep(50);
447 } 443 }
448 444
449 tabLoopIteration++; 445 tabLoopIteration++;
450 } 446 }
451 447
452 return 0; 448 return 0;
453 } 449 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld