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

Side by Side Diff: Shared/PluginClass.cpp

Issue 9451102: Filterlists downloads changes (Closed)
Patch Set: Created Feb. 28, 2013, 10:32 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 | « Shared/Plugin.cpp ('k') | Shared/PluginClassThread.cpp » ('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 "PluginClass.h" 3 #include "PluginClass.h"
4 #include "PluginDictionary.h" 4 #include "PluginDictionary.h"
5 #include "PluginSettings.h" 5 #include "PluginSettings.h"
6 #include "PluginSystem.h" 6 #include "PluginSystem.h"
7 #ifdef SUPPORT_FILTER 7 #ifdef SUPPORT_FILTER
8 #include "PluginFilter.h" 8 #include "PluginFilter.h"
9 #endif 9 #endif
10 #include "PluginMimeFilterClient.h" 10 #include "PluginMimeFilterClient.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
316 316
317 317
318 // This gets called when a new browser window is created (which also triggers th e 318 // This gets called when a new browser window is created (which also triggers th e
319 // creation of this object). The pointer passed in should be to a IWebBrowser2 319 // creation of this object). The pointer passed in should be to a IWebBrowser2
320 // interface that represents the browser for the window. 320 // interface that represents the browser for the window.
321 // it is also called when a tab is closed, this unknownSite will be null 321 // it is also called when a tab is closed, this unknownSite will be null
322 // so we should handle that it is called this way several times during a session 322 // so we should handle that it is called this way several times during a session
323 STDMETHODIMP CPluginClass::SetSite(IUnknown* unknownSite) 323 STDMETHODIMP CPluginClass::SetSite(IUnknown* unknownSite)
324 { 324 {
325 //Message box. Can be used as a breakpoint to attach a debugger, if need ed
326 // MessageBox(NULL, L"", L"", MB_OK);
327 325
328 CPluginSettings* settings = CPluginSettings::GetInstance(); 326 CPluginSettings* settings = CPluginSettings::GetInstance();
329 #ifdef AVAST_ABP 327 #ifdef AVAST_ABP
330 HKEY hkey; 328 HKEY hkey;
331 LONG res = RegOpenKeyEx(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windo ws\\CurrentVersion\\Explorer\\Browser Helper Objects\\{FFCB3198-32F3-4E8B-9539-4 324694ED664}", NULL, KEY_QUERY_VALUE, &hkey); 329 LONG res = RegOpenKeyEx(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windo ws\\CurrentVersion\\Explorer\\Browser Helper Objects\\{FFCB3198-32F3-4E8B-9539-4 324694ED664}", NULL, KEY_QUERY_VALUE, &hkey);
332 if (hkey != NULL) 330 if (hkey != NULL)
333 { 331 {
334 RegCloseKey(hkey); 332 RegCloseKey(hkey);
335 // Decide what to do when there are 2 versions installed 333 // Decide what to do when there are 2 versions installed
336 /* SHANDLE_PTR pBrowserHWnd = NULL; 334 /* SHANDLE_PTR pBrowserHWnd = NULL;
(...skipping 1958 matching lines...) Expand 10 before | Expand all | Expand 10 after
2295 } 2293 }
2296 } 2294 }
2297 } 2295 }
2298 2296
2299 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); 2297 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT);
2300 } 2298 }
2301 2299
2302 return hTabWnd; 2300 return hTabWnd;
2303 2301
2304 } 2302 }
OLDNEW
« no previous file with comments | « Shared/Plugin.cpp ('k') | Shared/PluginClassThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld