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

Side by Side Diff: snapshot/test/test_process_snapshot.h

Issue 1407643004: Some plumbing for the beginning of getting handles into snapshot/minidump (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@handles-redux
Patch Set: . Created 5 years, 2 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void ProcessCPUTimes(timeval* user_time, timeval* system_time) const override; 124 void ProcessCPUTimes(timeval* user_time, timeval* system_time) const override;
125 void ReportID(UUID* report_id) const override; 125 void ReportID(UUID* report_id) const override;
126 void ClientID(UUID* client_id) const override; 126 void ClientID(UUID* client_id) const override;
127 const std::map<std::string, std::string>& AnnotationsSimpleMap() 127 const std::map<std::string, std::string>& AnnotationsSimpleMap()
128 const override; 128 const override;
129 const SystemSnapshot* System() const override; 129 const SystemSnapshot* System() const override;
130 std::vector<const ThreadSnapshot*> Threads() const override; 130 std::vector<const ThreadSnapshot*> Threads() const override;
131 std::vector<const ModuleSnapshot*> Modules() const override; 131 std::vector<const ModuleSnapshot*> Modules() const override;
132 const ExceptionSnapshot* Exception() const override; 132 const ExceptionSnapshot* Exception() const override;
133 std::vector<const MemoryMapRegionSnapshot*> MemoryMap() const override; 133 std::vector<const MemoryMapRegionSnapshot*> MemoryMap() const override;
134 std::vector<HandleSnapshot> Handles() const override;
134 std::vector<const MemorySnapshot*> ExtraMemory() const override; 135 std::vector<const MemorySnapshot*> ExtraMemory() const override;
135 136
136 private: 137 private:
137 pid_t process_id_; 138 pid_t process_id_;
138 pid_t parent_process_id_; 139 pid_t parent_process_id_;
139 timeval snapshot_time_; 140 timeval snapshot_time_;
140 timeval process_start_time_; 141 timeval process_start_time_;
141 timeval process_cpu_user_time_; 142 timeval process_cpu_user_time_;
142 timeval process_cpu_system_time_; 143 timeval process_cpu_system_time_;
143 UUID report_id_; 144 UUID report_id_;
144 UUID client_id_; 145 UUID client_id_;
145 std::map<std::string, std::string> annotations_simple_map_; 146 std::map<std::string, std::string> annotations_simple_map_;
146 scoped_ptr<SystemSnapshot> system_; 147 scoped_ptr<SystemSnapshot> system_;
147 PointerVector<ThreadSnapshot> threads_; 148 PointerVector<ThreadSnapshot> threads_;
148 PointerVector<ModuleSnapshot> modules_; 149 PointerVector<ModuleSnapshot> modules_;
149 scoped_ptr<ExceptionSnapshot> exception_; 150 scoped_ptr<ExceptionSnapshot> exception_;
150 PointerVector<MemoryMapRegionSnapshot> memory_map_; 151 PointerVector<MemoryMapRegionSnapshot> memory_map_;
151 PointerVector<MemorySnapshot> extra_memory_; 152 PointerVector<MemorySnapshot> extra_memory_;
152 153
153 DISALLOW_COPY_AND_ASSIGN(TestProcessSnapshot); 154 DISALLOW_COPY_AND_ASSIGN(TestProcessSnapshot);
154 }; 155 };
155 156
156 } // namespace test 157 } // namespace test
157 } // namespace crashpad 158 } // namespace crashpad
158 159
159 #endif // CRASHPAD_SNAPSHOT_TEST_TEST_PROCESS_SNAPSHOT_H_ 160 #endif // CRASHPAD_SNAPSHOT_TEST_TEST_PROCESS_SNAPSHOT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698