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

Side by Side Diff: snapshot/mac/process_snapshot_mac.h

Issue 689483003: snapshot: Make destructors of interface classes public and virtual (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: 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 | « snapshot/mac/module_snapshot_mac.h ('k') | snapshot/mac/system_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 25 matching lines...) Expand all
36 #include "util/misc/initialization_state_dcheck.h" 36 #include "util/misc/initialization_state_dcheck.h"
37 #include "util/stdlib/pointer_container.h" 37 #include "util/stdlib/pointer_container.h"
38 38
39 namespace crashpad { 39 namespace crashpad {
40 40
41 //! \brief A ProcessSnapshot of a running (or crashed) process running on a Mac 41 //! \brief A ProcessSnapshot of a running (or crashed) process running on a Mac
42 //! OS X system. 42 //! OS X system.
43 class ProcessSnapshotMac final : public ProcessSnapshot { 43 class ProcessSnapshotMac final : public ProcessSnapshot {
44 public: 44 public:
45 ProcessSnapshotMac(); 45 ProcessSnapshotMac();
46 ~ProcessSnapshotMac(); 46 ~ProcessSnapshotMac() override;
47 47
48 //! \brief Initializes the object. 48 //! \brief Initializes the object.
49 //! 49 //!
50 //! \param[in] task The task to create a snapshot from. 50 //! \param[in] task The task to create a snapshot from.
51 //! 51 //!
52 //! \return `true` if the snapshot could be created, `false` otherwise with 52 //! \return `true` if the snapshot could be created, `false` otherwise with
53 //! an appropriate message logged. 53 //! an appropriate message logged.
54 bool Initialize(task_t task); 54 bool Initialize(task_t task);
55 55
56 //! \brief Initializes the object’s exception. 56 //! \brief Initializes the object’s exception.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 ProcessReader process_reader_; 98 ProcessReader process_reader_;
99 timeval snapshot_time_; 99 timeval snapshot_time_;
100 InitializationStateDcheck initialized_; 100 InitializationStateDcheck initialized_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotMac); 102 DISALLOW_COPY_AND_ASSIGN(ProcessSnapshotMac);
103 }; 103 };
104 104
105 } // namespace crashpad 105 } // namespace crashpad
106 106
107 #endif // CRASHPAD_SNAPSHOT_MAC_PROCESS_SNAPSHOT_MAC_H_ 107 #endif // CRASHPAD_SNAPSHOT_MAC_PROCESS_SNAPSHOT_MAC_H_
OLDNEW
« no previous file with comments | « snapshot/mac/module_snapshot_mac.h ('k') | snapshot/mac/system_snapshot_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698