Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(970)

Side by Side Diff: base/process_util.h

Issue 10735044: Remove #pragma once. Just from base/ for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/process_info.h ('k') | base/process_util_unittest_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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
11 10
12 #include "base/basictypes.h" 11 #include "base/basictypes.h"
13 #include "base/time.h" 12 #include "base/time.h"
14 13
15 #if defined(OS_WIN) 14 #if defined(OS_WIN)
16 #include <windows.h> 15 #include <windows.h>
17 #include <tlhelp32.h> 16 #include <tlhelp32.h>
18 #elif defined(OS_MACOSX) || defined(OS_BSD) 17 #elif defined(OS_MACOSX) || defined(OS_BSD)
19 // kinfo_proc is defined in <sys/sysctl.h>, but this forward declaration 18 // kinfo_proc is defined in <sys/sysctl.h>, but this forward declaration
20 // is sufficient for the vector<kinfo_proc> below. 19 // is sufficient for the vector<kinfo_proc> below.
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 // instance running inside the parent. The parent's Breakpad instance should 853 // instance running inside the parent. The parent's Breakpad instance should
855 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler 854 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler
856 // in the child after forking will restore the standard exception handler. 855 // in the child after forking will restore the standard exception handler.
857 // See http://crbug.com/20371/ for more details. 856 // See http://crbug.com/20371/ for more details.
858 void RestoreDefaultExceptionHandler(); 857 void RestoreDefaultExceptionHandler();
859 #endif // defined(OS_MACOSX) 858 #endif // defined(OS_MACOSX)
860 859
861 } // namespace base 860 } // namespace base
862 861
863 #endif // BASE_PROCESS_UTIL_H_ 862 #endif // BASE_PROCESS_UTIL_H_
OLDNEW
« no previous file with comments | « base/process_info.h ('k') | base/process_util_unittest_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698