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

Side by Side Diff: util/test/mac/mach_multiprocess.h

Issue 577293002: Use task_t, thread_t, and exception_handler_t uniformly (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 3 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
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 //! \brief Returns a send right for the remote port. 61 //! \brief Returns a send right for the remote port.
62 //! 62 //!
63 //! This method may be called by either the parent or the child process. It 63 //! This method may be called by either the parent or the child process. It
64 //! returns a send right, with the corresponding receive right held in the 64 //! returns a send right, with the corresponding receive right held in the
65 //! opposing process. 65 //! opposing process.
66 mach_port_t RemotePort() const; 66 mach_port_t RemotePort() const;
67 67
68 //! \brief Returns a send right for the child’s task port. 68 //! \brief Returns a send right for the child’s task port.
69 //! 69 //!
70 //! This method may only be called by the parent process. 70 //! This method may only be called by the parent process.
71 mach_port_t ChildTask() const; 71 task_t ChildTask() const;
72 72
73 private: 73 private:
74 // Multiprocess: 74 // Multiprocess:
75 75
76 //! \brief Runs the parent side of the test. 76 //! \brief Runs the parent side of the test.
77 //! 77 //!
78 //! This method establishes the parent’s environment and calls 78 //! This method establishes the parent’s environment and calls
79 //! MachMultiprocessParent(). 79 //! MachMultiprocessParent().
80 //! 80 //!
81 //! Subclasses must override MachMultiprocessParent() instead of this method. 81 //! Subclasses must override MachMultiprocessParent() instead of this method.
(...skipping 29 matching lines...) Expand all
111 111
112 internal::MachMultiprocessInfo* info_; 112 internal::MachMultiprocessInfo* info_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(MachMultiprocess); 114 DISALLOW_COPY_AND_ASSIGN(MachMultiprocess);
115 }; 115 };
116 116
117 } // namespace test 117 } // namespace test
118 } // namespace crashpad 118 } // namespace crashpad
119 119
120 #endif // CRASHPAD_UTIL_TEST_MAC_MACH_MULTIPROCESS_H_ 120 #endif // CRASHPAD_UTIL_TEST_MAC_MACH_MULTIPROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698