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

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

Issue 11012013: Hanging resolved (critical sections unlocking) (Closed)
Patch Set: Comments addressed Created June 25, 2013, 11:56 a.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.h ('k') | src/shared/CriticalSection.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 "PluginFilter.h" 3 #include "PluginFilter.h"
4 4
5 #if (defined PRODUCT_ADBLOCKPLUS) 5 #if (defined PRODUCT_ADBLOCKPLUS)
6 #include "PluginSettings.h" 6 #include "PluginSettings.h"
7 #include "PluginClient.h" 7 #include "PluginClient.h"
8 #include "PluginClientFactory.h" 8 #include "PluginClientFactory.h"
9 #endif 9 #endif
10 10
11 #include "PluginMutex.h" 11 #include "PluginMutex.h"
12 #include "PluginHttpRequest.h" 12 #include "PluginHttpRequest.h"
13 #include "PluginSettings.h" 13 #include "PluginSettings.h"
14 #include "PluginSystem.h" 14 #include "PluginSystem.h"
15 #include "PluginClass.h" 15 #include "PluginClass.h"
16 #include "mlang.h" 16 #include "mlang.h"
17 17
18 #include "..\shared\CriticalSection.h"
19
18 20
19 // The filters are described at http://adblockplus.org/en/filters 21 // The filters are described at http://adblockplus.org/en/filters
20 22
21 static CriticalSection s_criticalSectionFilterMap; 23 static CriticalSection s_criticalSectionFilterMap;
22 24
23 // ============================================================================ 25 // ============================================================================
24 // CFilterElementHideAttrSelector 26 // CFilterElementHideAttrSelector
25 // ============================================================================ 27 // ============================================================================
26 28
27 CFilterElementHideAttrSelector::CFilterElementHideAttrSelector() : m_type(TYPE_N ONE), m_pos(POS_NONE), m_bstrAttr(NULL) 29 CFilterElementHideAttrSelector::CFilterElementHideAttrSelector() : m_type(TYPE_N ONE), m_pos(POS_NONE), m_bstrAttr(NULL)
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 if (pos > 0 && domain.GetLength() + pos == subdomain.GetLength()) 890 if (pos > 0 && domain.GetLength() + pos == subdomain.GetLength())
889 { 891 {
890 if (subdomain.GetAt(pos - 1) == '.') 892 if (subdomain.GetAt(pos - 1) == '.')
891 { 893 {
892 return true; 894 return true;
893 } 895 }
894 } 896 }
895 897
896 return false; 898 return false;
897 } 899 }
OLDNEW
« no previous file with comments | « src/plugin/PluginFilter.h ('k') | src/shared/CriticalSection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld