| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 1 /** | 1 /** |
| 2 * \file close_application.cpp | 2 * \file close_application.cpp |
| 3 */ | 3 */ |
| 4 | 4 |
| 5 #include <algorithm> | 5 #include <algorithm> |
| 6 | 6 |
| 7 #include "session.h" | 7 #include "session.h" |
| 8 #include "property.h" | 8 #include "property.h" |
| 9 #include "database.h" | 9 #include "database.h" |
| 10 #include "process.h" | 10 #include "process.h" |
| 11 #include "interaction.h" | 11 #include "interaction.h" |
| 12 #include "custom-i18n.h" | 12 #include "custom-i18n.h" |
| 13 | 13 |
| 14 //------------------------------------------------------- | 14 //------------------------------------------------------- |
| 15 //------------------------------------------------------- | 15 //------------------------------------------------------- |
| 16 class IE_Closer | 16 class IE_Closer |
| 17 { | 17 { |
| 18 Snapshot snapshot ; | 18 Snapshot snapshot ; |
| 19 | 19 |
| 20 Process_Closer ie_closer ; | 20 Process_Closer ie_closer ; |
| 21 | 21 |
| 22 Process_Closer engine_closer ; | 22 Process_Closer engine_closer ; |
| 23 | 23 |
| 24 static const wchar_t * ie_names[] ; | 24 static const wchar_t * ie_names[ 1 ] ; |
| 25 static const wchar_t * engine_names[] ; | 25 static const wchar_t * engine_names[ 1 ] ; |
|
Wladimir Palant
2014/03/31 05:58:35
Style nit: excessive whitespace. There should be n
| |
| 26 | 26 |
| 27 public: | 27 public: |
| 28 IE_Closer() | 28 IE_Closer() |
| 29 : snapshot(), ie_closer( snapshot, ie_names, 1 ), engine_closer( snapshot, e ngine_names, 1 ) | 29 : snapshot(), ie_closer( snapshot, ie_names ), engine_closer( snapshot, engi ne_names ) |
|
Wladimir Palant
2014/03/31 05:58:35
Style nit: excessive whitespace. There should be n
| |
| 30 {} | 30 {} |
| 31 | 31 |
| 32 void refresh() | 32 void refresh() |
| 33 { | 33 { |
| 34 snapshot.refresh() ; | 34 snapshot.refresh() ; |
| 35 ie_closer.refresh() ; | 35 ie_closer.refresh() ; |
| 36 engine_closer.refresh() ; | 36 engine_closer.refresh() ; |
| 37 } | 37 } |
| 38 | 38 |
| 39 bool is_running() | 39 bool is_running() |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 52 if ( engine_closer.is_running() && ! engine_closer.shut_down() ) | 52 if ( engine_closer.is_running() && ! engine_closer.shut_down() ) |
| 53 { | 53 { |
| 54 // Assert the engine is still running | 54 // Assert the engine is still running |
| 55 // This is after IE has shut down itself and after we've tried to shut dow n the engine. Whatever. | 55 // This is after IE has shut down itself and after we've tried to shut dow n the engine. Whatever. |
| 56 return false ; | 56 return false ; |
| 57 } | 57 } |
| 58 return true ; | 58 return true ; |
| 59 } | 59 } |
| 60 } ; | 60 } ; |
| 61 | 61 |
| 62 const wchar_t * IE_Closer::ie_names[] = { L"IExplore.exe" } ; | 62 const wchar_t * IE_Closer::ie_names[ 1 ] = { L"IExplore.exe" } ; |
| 63 const wchar_t * IE_Closer::engine_names[] = { L"AdblockPlusEngine.exe" } ; | 63 const wchar_t * IE_Closer::engine_names[ 1 ] = { L"AdblockPlusEngine.exe" } ; |
| 64 | 64 |
| 65 //------------------------------------------------------- | 65 //------------------------------------------------------- |
| 66 // abp_close_ie | 66 // abp_close_ie |
| 67 //------------------------------------------------------- | 67 //------------------------------------------------------- |
| 68 /** | 68 /** |
| 69 * Exposed DLL entry point for custom action. | 69 * Exposed DLL entry point for custom action. |
| 70 * The function signature matches the calling convention used by Windows Install er. | 70 * The function signature matches the calling convention used by Windows Install er. |
| 71 * | 71 * |
| 72 * This function supports four policy stances with respect to a running IE proce ss. | 72 * This function supports four policy stances with respect to a running IE proce ss. |
| 73 * | 73 * |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 451 return TRUE ; | 451 return TRUE ; |
| 452 } | 452 } |
| 453 | 453 |
| 454 /** | 454 /** |
| 455 * Windows_List | 455 * Windows_List |
| 456 */ | 456 */ |
| 457 class Window_List { | 457 class Window_List { |
| 458 public: | 458 public: |
| 459 void enumerate_top_level(); | 459 void enumerate_top_level(); |
| 460 }; | 460 }; |
| OLD | NEW |