OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file/namespace contains utility functions for enumerating, ending and | 5 // This file/namespace contains utility functions for enumerating, ending and |
6 // computing statistics of processes. | 6 // computing statistics of processes. |
7 | 7 |
8 #ifndef BASE_PROCESS_UTIL_H_ | 8 #ifndef BASE_PROCESS_UTIL_H_ |
9 #define BASE_PROCESS_UTIL_H_ | 9 #define BASE_PROCESS_UTIL_H_ |
10 #pragma once | 10 #pragma once |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 // on the current machine that were started from the given executable | 546 // on the current machine that were started from the given executable |
547 // name. To use, create an instance and then call NextProcessEntry() | 547 // name. To use, create an instance and then call NextProcessEntry() |
548 // until it returns false. | 548 // until it returns false. |
549 class BASE_EXPORT NamedProcessIterator : public ProcessIterator { | 549 class BASE_EXPORT NamedProcessIterator : public ProcessIterator { |
550 public: | 550 public: |
551 NamedProcessIterator(const FilePath::StringType& executable_name, | 551 NamedProcessIterator(const FilePath::StringType& executable_name, |
552 const ProcessFilter* filter); | 552 const ProcessFilter* filter); |
553 virtual ~NamedProcessIterator(); | 553 virtual ~NamedProcessIterator(); |
554 | 554 |
555 protected: | 555 protected: |
556 virtual bool IncludeEntry(); | 556 virtual bool IncludeEntry() OVERRIDE; |
557 | 557 |
558 private: | 558 private: |
559 FilePath::StringType executable_name_; | 559 FilePath::StringType executable_name_; |
560 | 560 |
561 DISALLOW_COPY_AND_ASSIGN(NamedProcessIterator); | 561 DISALLOW_COPY_AND_ASSIGN(NamedProcessIterator); |
562 }; | 562 }; |
563 | 563 |
564 // Working Set (resident) memory usage broken down by | 564 // Working Set (resident) memory usage broken down by |
565 // | 565 // |
566 // On Windows: | 566 // On Windows: |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 // instance running inside the parent. The parent's Breakpad instance should | 776 // instance running inside the parent. The parent's Breakpad instance should |
777 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler | 777 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler |
778 // in the child after forking will restore the standard exception handler. | 778 // in the child after forking will restore the standard exception handler. |
779 // See http://crbug.com/20371/ for more details. | 779 // See http://crbug.com/20371/ for more details. |
780 void RestoreDefaultExceptionHandler(); | 780 void RestoreDefaultExceptionHandler(); |
781 #endif // defined(OS_MACOSX) | 781 #endif // defined(OS_MACOSX) |
782 | 782 |
783 } // namespace base | 783 } // namespace base |
784 | 784 |
785 #endif // BASE_PROCESS_UTIL_H_ | 785 #endif // BASE_PROCESS_UTIL_H_ |
OLD | NEW |