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

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

Issue 29334397: Issue #2230, #3391 - Load filters on "download begin" event
Patch Set: Created Jan. 22, 2016, 6:02 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-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 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
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 DEBUG_NAVI(L"Navi::Begin navigation url:" + url) 511 DEBUG_NAVI(L"Navi::Begin navigation url:" + url)
512 m_tab->CacheFrame(url); 512 m_tab->CacheFrame(url);
513 } 513 }
514 } 514 }
515 catch (...) 515 catch (...)
516 { 516 {
517 } 517 }
518 } 518 }
519 519
520 // Entry point 520 // Entry point
521 void STDMETHODCALLTYPE CPluginClass::OnDownloadBegin()
522 {
523 try
524 {
525 DEBUG_NAVI("OnDownloadBegin");
526 m_tab->OnDownloadBegin();
527 }
528 catch (...)
529 {
530 }
531 }
532
533 // Entry point
521 void STDMETHODCALLTYPE CPluginClass::OnDownloadComplete() 534 void STDMETHODCALLTYPE CPluginClass::OnDownloadComplete()
522 { 535 {
523 try 536 try
524 { 537 {
525 if (!m_webBrowser2) 538 if (!m_webBrowser2)
526 { 539 {
527 DEBUG_ERROR_LOG(0, 0, 0, "CPluginClass::OnDownloadComplete - Reached with m_webBrowser2 == nullptr"); 540 DEBUG_ERROR_LOG(0, 0, 0, "CPluginClass::OnDownloadComplete - Reached with m_webBrowser2 == nullptr");
528 return; 541 return;
529 } 542 }
530 DEBUG_NAVI(L"Navi::Download Complete") 543 DEBUG_NAVI(L"Navi::Download Complete")
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1707 s_criticalSectionLocal.Unlock(); 1720 s_criticalSectionLocal.Unlock();
1708 1721
1709 return icon; 1722 return icon;
1710 } 1723 }
1711 1724
1712 ATOM CPluginClass::GetAtomPaneClass() 1725 ATOM CPluginClass::GetAtomPaneClass()
1713 { 1726 {
1714 return s_atomPaneClass; 1727 return s_atomPaneClass;
1715 } 1728 }
1716 1729
OLDNEW

Powered by Google App Engine
This is Rietveld