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

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

Issue 29323611: Issue #1234, #2058 - Rewrite log facility, improving thread implementation
Patch Set: Created Aug. 19, 2015, 5:42 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 /* 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"
21 #include "PluginWbPassThrough.h" 20 #include "PluginWbPassThrough.h"
22 21
23 22
24 typedef PassthroughAPP::CMetaFactory<PassthroughAPP::CComClassFactoryProtocol,WB Passthru> MetaFactory; 23 typedef PassthroughAPP::CMetaFactory<PassthroughAPP::CComClassFactoryProtocol,WB Passthru> MetaFactory;
25 24
26 25
27 CPluginMimeFilterClient::CPluginMimeFilterClient() : m_classFactory(NULL), m_spC FHTTP(NULL), m_spCFHTTPS(NULL) 26 CPluginMimeFilterClient::CPluginMimeFilterClient() : m_classFactory(NULL), m_spC FHTTP(NULL), m_spCFHTTPS(NULL)
28 { 27 {
29 // Should only be called once 28 // Should only be called once
30 // We register mime filters here 29 // We register mime filters here
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 { 94 {
96 CComPtr<IInternetSession> spSession; 95 CComPtr<IInternetSession> spSession;
97 96
98 ::CoInternetGetSession(0, &spSession, 0); 97 ::CoInternetGetSession(0, &spSession, 0);
99 if (spSession) 98 if (spSession)
100 { 99 {
101 spSession->UnregisterNameSpace(m_spCFHTTP, L"http"); 100 spSession->UnregisterNameSpace(m_spCFHTTP, L"http");
102 spSession->UnregisterNameSpace(m_spCFHTTPS, L"https"); 101 spSession->UnregisterNameSpace(m_spCFHTTPS, L"https");
103 } 102 }
104 } 103 }
OLDNEW

Powered by Google App Engine
This is Rietveld