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

Delta Between Two Patch Sets: installer/src/installer-lib/process.h

Issue 5219280069066752: Issue #1186 - Change names that appear in the custom action (Closed)
Left Patch Set: Created Oct. 20, 2014, 1:42 a.m.
Right Patch Set: Created Jan. 4, 2015, 7 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « installer/src/installer-lib/interaction.cpp ('k') | installer/src/installer-lib/process.cpp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /** 1 /**
2 * \file process.h 2 * \file process.h
3 */ 3 */
4 4
5 #ifndef PROCESS_H 5 #ifndef PROCESS_H
6 #define PROCESS_H 6 #define PROCESS_H
7 7
8 #include "installer-lib.h" 8 #include "installer-lib.h"
9 #include "handle.h" 9 #include "handle.h"
10 10
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 buffer.dwSize = sizeof( result_type ) ; 320 buffer.dwSize = sizeof( result_type ) ;
321 } 321 }
322 322
323 public: 323 public:
324 /** 324 /**
325 * Reconstruct the current instance with a new system snapshot. 325 * Reconstruct the current instance with a new system snapshot.
326 * 326 *
327 * This function uses reinitialization assignment in the Windows_Handle class, 327 * This function uses reinitialization assignment in the Windows_Handle class,
328 * which takes care of closing the old handle. 328 * which takes care of closing the old handle.
329 */ 329 */
330 void refresh() 330 void Refresh()
331 { 331 {
332 handle = make_handle(); 332 handle = make_handle();
333 } 333 }
334 334
335 /** 335 /**
336 * Retrieve the first snapshot item into our member buffer. 336 * Retrieve the first snapshot item into our member buffer.
337 * 337 *
338 * \return 338 * \return
339 * Pointer to our member buffer if there was a first item 339 * Pointer to our member buffer if there was a first item
340 * 0 otherwise 340 * 0 otherwise
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 template <size_t n_file_names> 659 template <size_t n_file_names>
660 ProcessCloser(ProcessSnapshot & snapshot, const wchar_t * (&file_name_list)[n_ file_names]) 660 ProcessCloser(ProcessSnapshot & snapshot, const wchar_t * (&file_name_list)[n_ file_names])
661 : snapshot(snapshot), process_names(file_name_list), filter(process_names) 661 : snapshot(snapshot), process_names(file_name_list), filter(process_names)
662 { 662 {
663 update() ; 663 update() ;
664 } 664 }
665 665
666 /** 666 /**
667 * Refresh our state to match the snapshot state. 667 * Refresh our state to match the snapshot state.
668 */ 668 */
669 void refresh() 669 void Refresh()
670 { 670 {
671 pid_set.clear() ; 671 pid_set.clear() ;
672 update() ; 672 update() ;
673 } 673 }
674 674
675 bool IsRunning() { return ! pid_set.empty() ; } ; 675 bool IsRunning() { return ! pid_set.empty() ; } ;
676 676
677 bool contains( DWORD pid ) const { return pid_set.find( pid ) != pid_set.end() ; } ; 677 bool contains( DWORD pid ) const { return pid_set.find( pid ) != pid_set.end() ; } ;
678 678
679 template< class F > 679 template< class F >
680 bool iterate_our_windows( F f ) 680 bool iterate_our_windows( F f )
681 { 681 {
682 only_our_processes< F > g( * this, f ) ; 682 only_our_processes< F > g( * this, f ) ;
683 return enumerate_windows( g ) ; 683 return enumerate_windows( g ) ;
684 } 684 }
685 685
686 /* 686 /*
687 * Shut down every process in the pid_set. 687 * Shut down every process in the pid_set.
688 */ 688 */
689 bool shutDown() ; 689 bool ShutDown() ;
Felix Dahlke 2014/10/22 16:00:33 Should be ShutDown(), hm?
690 690
691 } ; 691 } ;
692 692
693 #endif 693 #endif
LEFTRIGHT

Powered by Google App Engine
This is Rietveld