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

Side by Side Diff: snapshot/exception_snapshot_mac.h

Issue 654933002: Use exactly one of final, override, and virtual (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: git grep -E '^ {3,}.*override[ Created 6 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
« no previous file with comments | « minidump/minidump_writable_test.cc ('k') | snapshot/memory_snapshot_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 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 thread_t exception_thread, 53 thread_t exception_thread,
54 exception_type_t exception, 54 exception_type_t exception,
55 const mach_exception_data_type_t* code, 55 const mach_exception_data_type_t* code,
56 mach_msg_type_number_t code_count, 56 mach_msg_type_number_t code_count,
57 thread_state_flavor_t flavor, 57 thread_state_flavor_t flavor,
58 const natural_t* state, 58 const natural_t* state,
59 mach_msg_type_number_t state_count); 59 mach_msg_type_number_t state_count);
60 60
61 // ExceptionSnapshot: 61 // ExceptionSnapshot:
62 62
63 virtual const CPUContext* Context() const override; 63 const CPUContext* Context() const override;
64 virtual uint64_t ThreadID() const override; 64 uint64_t ThreadID() const override;
65 virtual uint32_t Exception() const override; 65 uint32_t Exception() const override;
66 virtual uint32_t ExceptionInfo() const override; 66 uint32_t ExceptionInfo() const override;
67 virtual uint64_t ExceptionAddress() const override; 67 uint64_t ExceptionAddress() const override;
68 virtual const std::vector<uint64_t>& Codes() const override; 68 const std::vector<uint64_t>& Codes() const override;
69 69
70 private: 70 private:
71 #if defined(ARCH_CPU_X86_FAMILY) 71 #if defined(ARCH_CPU_X86_FAMILY)
72 union { 72 union {
73 CPUContextX86 x86; 73 CPUContextX86 x86;
74 CPUContextX86_64 x86_64; 74 CPUContextX86_64 x86_64;
75 } context_union_; 75 } context_union_;
76 #endif 76 #endif
77 CPUContext context_; 77 CPUContext context_;
78 std::vector<uint64_t> codes_; 78 std::vector<uint64_t> codes_;
79 uint64_t thread_id_; 79 uint64_t thread_id_;
80 uint64_t exception_address_; 80 uint64_t exception_address_;
81 exception_type_t exception_; 81 exception_type_t exception_;
82 uint32_t exception_code_0_; 82 uint32_t exception_code_0_;
83 InitializationStateDcheck initialized_; 83 InitializationStateDcheck initialized_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(ExceptionSnapshotMac); 85 DISALLOW_COPY_AND_ASSIGN(ExceptionSnapshotMac);
86 }; 86 };
87 87
88 } // namespace internal 88 } // namespace internal
89 } // namespace crashpad 89 } // namespace crashpad
90 90
91 #endif // CRASHPAD_SNAPSHOT_EXCEPTION_SNAPSHOT_MAC_H_ 91 #endif // CRASHPAD_SNAPSHOT_EXCEPTION_SNAPSHOT_MAC_H_
OLDNEW
« no previous file with comments | « minidump/minidump_writable_test.cc ('k') | snapshot/memory_snapshot_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698