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

Side by Side Diff: base/process/process.h

Issue 725353003: Don't pass ProcessHandle through ChildProcessHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 6 years, 1 month 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
« no previous file with comments | « no previous file | base/process/process_posix.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) 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 #ifndef BASE_PROCESS_PROCESS_PROCESS_H_ 5 #ifndef BASE_PROCESS_PROCESS_PROCESS_H_
6 #define BASE_PROCESS_PROCESS_PROCESS_H_ 6 #define BASE_PROCESS_PROCESS_PROCESS_H_
7 7
8 #include "base/base_export.h" 8 #include "base/base_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/move.h" 10 #include "base/move.h"
(...skipping 30 matching lines...) Expand all
41 41
42 // The destructor does not terminate the process. 42 // The destructor does not terminate the process.
43 ~Process() {} 43 ~Process() {}
44 44
45 // Move operator= for C++03 move emulation of this type. 45 // Move operator= for C++03 move emulation of this type.
46 Process& operator=(RValue other); 46 Process& operator=(RValue other);
47 47
48 // Returns an object for the current process. 48 // Returns an object for the current process.
49 static Process Current(); 49 static Process Current();
50 50
51 // Creates an object from a |handle| owned by someone else.
52 // Don't use this for new code. It is only intended to ease the migration to
53 // a strict ownership model.
54 // TODO(rvargas) crbug.com/417532: Remove this code.
55 static Process DeprecatedGetProcessFromHandle(ProcessHandle handle);
56
51 // Returns true if processes can be backgrounded. 57 // Returns true if processes can be backgrounded.
52 static bool CanBackgroundProcesses(); 58 static bool CanBackgroundProcesses();
53 59
54 // Returns true if this objects represents a valid process. 60 // Returns true if this objects represents a valid process.
55 bool IsValid() const; 61 bool IsValid() const;
56 62
57 // Returns a handle for this process. There is no guarantee about when that 63 // Returns a handle for this process. There is no guarantee about when that
58 // handle becomes invalid because this object retains ownership. 64 // handle becomes invalid because this object retains ownership.
59 ProcessHandle Handle() const; 65 ProcessHandle Handle() const;
60 66
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 bool is_current_process_; 100 bool is_current_process_;
95 win::ScopedHandle process_; 101 win::ScopedHandle process_;
96 #else 102 #else
97 ProcessHandle process_; 103 ProcessHandle process_;
98 #endif 104 #endif
99 }; 105 };
100 106
101 } // namespace base 107 } // namespace base
102 108
103 #endif // BASE_PROCESS_PROCESS_PROCESS_H_ 109 #endif // BASE_PROCESS_PROCESS_PROCESS_H_
OLDNEW
« no previous file with comments | « no previous file | base/process/process_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698