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

Side by Side Diff: base/process_util.h

Issue 10384209: Reverting r133134 - Make sure that base::MessagePumpForUI from different modules are isolated from … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/message_pump_win.cc ('k') | base/process_util_win.cc » ('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 10 #pragma once
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 BASE_EXPORT extern size_t g_oom_size; 139 BASE_EXPORT extern size_t g_oom_size;
140 #endif 140 #endif
141 141
142 // Returns the id of the current process. 142 // Returns the id of the current process.
143 BASE_EXPORT ProcessId GetCurrentProcId(); 143 BASE_EXPORT ProcessId GetCurrentProcId();
144 144
145 // Returns the ProcessHandle of the current process. 145 // Returns the ProcessHandle of the current process.
146 BASE_EXPORT ProcessHandle GetCurrentProcessHandle(); 146 BASE_EXPORT ProcessHandle GetCurrentProcessHandle();
147 147
148 #if defined(OS_WIN) 148 #if defined(OS_WIN)
149 // Returns the module handle to which an address belongs. The reference counter 149 // Returns the module handle to which an address belongs.
150 // of the module is not incremented.
151 BASE_EXPORT HMODULE GetModuleFromAddress(void* address); 150 BASE_EXPORT HMODULE GetModuleFromAddress(void* address);
152 #endif 151 #endif
153 152
154 // Converts a PID to a process handle. This handle must be closed by 153 // Converts a PID to a process handle. This handle must be closed by
155 // CloseProcessHandle when you are done with it. Returns true on success. 154 // CloseProcessHandle when you are done with it. Returns true on success.
156 BASE_EXPORT bool OpenProcessHandle(ProcessId pid, ProcessHandle* handle); 155 BASE_EXPORT bool OpenProcessHandle(ProcessId pid, ProcessHandle* handle);
157 156
158 // Converts a PID to a process handle. On Windows the handle is opened 157 // Converts a PID to a process handle. On Windows the handle is opened
159 // with more access rights and must only be used by trusted code. 158 // with more access rights and must only be used by trusted code.
160 // You have to close returned handle using CloseProcessHandle. Returns true 159 // You have to close returned handle using CloseProcessHandle. Returns true
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 // instance running inside the parent. The parent's Breakpad instance should 846 // instance running inside the parent. The parent's Breakpad instance should
848 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler 847 // not handle the child's exceptions. Calling RestoreDefaultExceptionHandler
849 // in the child after forking will restore the standard exception handler. 848 // in the child after forking will restore the standard exception handler.
850 // See http://crbug.com/20371/ for more details. 849 // See http://crbug.com/20371/ for more details.
851 void RestoreDefaultExceptionHandler(); 850 void RestoreDefaultExceptionHandler();
852 #endif // defined(OS_MACOSX) 851 #endif // defined(OS_MACOSX)
853 852
854 } // namespace base 853 } // namespace base
855 854
856 #endif // BASE_PROCESS_UTIL_H_ 855 #endif // BASE_PROCESS_UTIL_H_
OLDNEW
« no previous file with comments | « base/message_pump_win.cc ('k') | base/process_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698