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

Unified Diff: third_party/crashpad/crashpad/snapshot/unloaded_module_snapshot.h

Issue 1704203004: Update Crashpad to badfacccee01895719d2aeb3ac50f64854abf10c (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/crashpad/crashpad/snapshot/unloaded_module_snapshot.h
diff --git a/third_party/crashpad/crashpad/snapshot/unloaded_module_snapshot.h b/third_party/crashpad/crashpad/snapshot/unloaded_module_snapshot.h
new file mode 100644
index 0000000000000000000000000000000000000000..03e100e1d2bb74a66a33585d8fcd69e0e51150cd
--- /dev/null
+++ b/third_party/crashpad/crashpad/snapshot/unloaded_module_snapshot.h
@@ -0,0 +1,61 @@
+// Copyright 2016 The Crashpad Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#ifndef CRASHPAD_SNAPSHOT_UNLOADED_MODULE_SNAPSHOT_H_
+#define CRASHPAD_SNAPSHOT_UNLOADED_MODULE_SNAPSHOT_H_
+
+#include <stdint.h>
+
+#include <string>
+
+namespace crashpad {
+
+//! \brief Information about an unloaded module that was previously loaded into
+//! a snapshot process.
+class UnloadedModuleSnapshot {
+ public:
+ UnloadedModuleSnapshot(uint64_t address,
+ uint64_t size,
+ uint32_t checksum,
+ uint32_t timestamp,
+ const std::string& name);
+ ~UnloadedModuleSnapshot();
+
+ //! \brief The base address of the module in the target processes' address
+ //! space.
+ uint64_t Address() const { return address_; }
+
+ //! \brief The size of the module.
+ uint64_t Size() const { return size_; }
+
+ //! \brief The checksum of the image.
+ uint32_t Checksum() const { return checksum_; }
+
+ //! \brief The time and date stamp in `time_t` format.
+ uint32_t Timestamp() const { return timestamp_; }
+
+ //! \brief The name of the module.
+ std::string Name() const { return name_; }
+
+ private:
+ std::string name_;
+ uint64_t address_;
+ uint64_t size_;
+ uint32_t checksum_;
+ uint32_t timestamp_;
+};
+
+} // namespace crashpad
+
+#endif // CRASHPAD_SNAPSHOT_UNLOADED_MODULE_SNAPSHOT_H_

Powered by Google App Engine
This is Rietveld 408576698