| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * This file is part of Adblock Plus <https://adblockplus.org/>, | 2  * This file is part of Adblock Plus <https://adblockplus.org/>, | 
| 3  * Copyright (C) 2006-2015 Eyeo GmbH | 3  * Copyright (C) 2006-2015 Eyeo GmbH | 
| 4  * | 4  * | 
| 5  * Adblock Plus is free software: you can redistribute it and/or modify | 5  * Adblock Plus is free software: you can redistribute it and/or modify | 
| 6  * it under the terms of the GNU General Public License version 3 as | 6  * it under the terms of the GNU General Public License version 3 as | 
| 7  * published by the Free Software Foundation. | 7  * published by the Free Software Foundation. | 
| 8  * | 8  * | 
| 9  * Adblock Plus is distributed in the hope that it will be useful, | 9  * Adblock Plus is distributed in the hope that it will be useful, | 
| 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| 11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
| 12  * GNU General Public License for more details. | 12  * GNU General Public License for more details. | 
| 13  * | 13  * | 
| 14  * You should have received a copy of the GNU General Public License | 14  * You should have received a copy of the GNU General Public License | 
| 15  * along with Adblock Plus.  If not, see <http://www.gnu.org/licenses/>. | 15  * along with Adblock Plus.  If not, see <http://www.gnu.org/licenses/>. | 
| 16  */ | 16  */ | 
| 17 | 17 | 
| 18 #include "PluginStdAfx.h" | 18 #include "PluginStdAfx.h" | 
| 19 #include "PluginMimeFilterClient.h" | 19 #include "PluginMimeFilterClient.h" | 
| 20 #include "PluginClientBase.h" | 20 #include "PluginClientBase.h" | 
| 21 #include "PluginWbPassThrough.h" | 21 #include "PluginWbPassThrough.h" | 
| 22 | 22 | 
| 23 |  | 
| 24 typedef PassthroughAPP::CMetaFactory<PassthroughAPP::CComClassFactoryProtocol,WB
     Passthru> MetaFactory; |  | 
| 25 |  | 
| 26 |  | 
| 27 CPluginMimeFilterClient::CPluginMimeFilterClient() : m_classFactory(NULL), m_spC
     FHTTP(NULL),  m_spCFHTTPS(NULL) | 23 CPluginMimeFilterClient::CPluginMimeFilterClient() : m_classFactory(NULL), m_spC
     FHTTP(NULL),  m_spCFHTTPS(NULL) | 
| 28 { | 24 { | 
| 29   // Should only be called once | 25   // Should only be called once | 
| 30   // We register mime filters here | 26   // We register mime filters here | 
| 31   // Register asynchronous protocol | 27   // Register asynchronous protocol | 
| 32   CComPtr<IInternetSession> spSession; | 28   CComPtr<IInternetSession> spSession; | 
| 33   HRESULT hr = ::CoInternetGetSession(0, &spSession, 0); | 29   HRESULT hr = ::CoInternetGetSession(0, &spSession, 0); | 
| 34   if (FAILED(hr) || !spSession) | 30   if (FAILED(hr) || !spSession) | 
| 35   { | 31   { | 
| 36     DEBUG_ERROR_LOG(hr, PLUGIN_ERROR_SESSION, PLUGIN_ERROR_SESSION_GET_INTERNET_
     SESSION, "MimeClient::CoInternetGetSession failed"); | 32     DEBUG_ERROR_LOG(hr, PLUGIN_ERROR_SESSION, PLUGIN_ERROR_SESSION_GET_INTERNET_
     SESSION, "MimeClient::CoInternetGetSession failed"); | 
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 95 { | 91 { | 
| 96   CComPtr<IInternetSession> spSession; | 92   CComPtr<IInternetSession> spSession; | 
| 97 | 93 | 
| 98   ::CoInternetGetSession(0, &spSession, 0); | 94   ::CoInternetGetSession(0, &spSession, 0); | 
| 99   if (spSession) | 95   if (spSession) | 
| 100   { | 96   { | 
| 101     spSession->UnregisterNameSpace(m_spCFHTTP, L"http"); | 97     spSession->UnregisterNameSpace(m_spCFHTTP, L"http"); | 
| 102     spSession->UnregisterNameSpace(m_spCFHTTPS, L"https"); | 98     spSession->UnregisterNameSpace(m_spCFHTTPS, L"https"); | 
| 103   } | 99   } | 
| 104 } | 100 } | 
| OLD | NEW | 
|---|