OLD | NEW |
1 #include "PluginStdAfx.h" | 1 #include "PluginStdAfx.h" |
2 | 2 |
3 // Internet / FTP | 3 // Internet / FTP |
4 #include <wininet.h> | 4 #include <wininet.h> |
5 | 5 |
6 // IP adapter | 6 // IP adapter |
7 #include <iphlpapi.h> | 7 #include <iphlpapi.h> |
8 | 8 |
9 #include "PluginSettings.h" | 9 #include "PluginSettings.h" |
10 #include "PluginSystem.h" | 10 #include "PluginSystem.h" |
11 #include "PluginDictionary.h" | |
12 #include "PluginHttpRequest.h" | 11 #include "PluginHttpRequest.h" |
13 #include "PluginMutex.h" | 12 #include "PluginMutex.h" |
14 #include "PluginClass.h" | 13 #include "PluginClass.h" |
15 | 14 |
16 #include "PluginClientBase.h" | 15 #include "PluginClientBase.h" |
17 | 16 |
18 // IP adapter | 17 // IP adapter |
19 #pragma comment(lib, "IPHLPAPI.lib") | 18 #pragma comment(lib, "IPHLPAPI.lib") |
20 | 19 |
21 // IE functions | 20 // IE functions |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 84 |
86 return url; | 85 return url; |
87 } | 86 } |
88 | 87 |
89 | 88 |
90 void CPluginClientBase::SetLocalization() | 89 void CPluginClientBase::SetLocalization() |
91 { | 90 { |
92 CPluginSystem* system = CPluginSystem::GetInstance(); | 91 CPluginSystem* system = CPluginSystem::GetInstance(); |
93 CString browserLanguage = system->GetBrowserLanguage(); | 92 CString browserLanguage = system->GetBrowserLanguage(); |
94 | 93 |
95 CPluginDictionary* dic = CPluginDictionary::GetInstance(); | |
96 dic->SetLanguage(browserLanguage); | |
97 | |
98 CPluginSettings* settings = CPluginSettings::GetInstance(); | 94 CPluginSettings* settings = CPluginSettings::GetInstance(); |
99 if (settings->IsMainProcess() && settings->IsMainThread() && !settings->Has(SE
TTING_LANGUAGE)) | 95 if (settings->IsMainProcess() && settings->IsMainThread() && !settings->Has(SE
TTING_LANGUAGE)) |
100 { | 96 { |
101 // TODO: We might want to set this to "en" if browserLanguage is not in filt
erLanguagesList | 97 // TODO: We might want to set this to "en" if browserLanguage is not in filt
erLanguagesList |
102 settings->SetString(SETTING_LANGUAGE, browserLanguage); | 98 settings->SetString(SETTING_LANGUAGE, browserLanguage); |
103 settings->Write(); | 99 settings->Write(); |
104 } | 100 } |
105 } | 101 } |
106 | 102 |
107 | 103 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 { | 221 { |
226 m_criticalSectionWhitelist.Lock(); | 222 m_criticalSectionWhitelist.Lock(); |
227 { | 223 { |
228 m_cacheWhitelistedUrls.clear(); | 224 m_cacheWhitelistedUrls.clear(); |
229 } | 225 } |
230 m_criticalSectionWhitelist.Unlock(); | 226 m_criticalSectionWhitelist.Unlock(); |
231 } | 227 } |
232 | 228 |
233 | 229 |
234 #endif // SUPPORT_WHITELIST | 230 #endif // SUPPORT_WHITELIST |
OLD | NEW |