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

Side by Side Diff: minidump/minidump_crashpad_info_writer.h

Issue 998033002: Carry the client ID from the database all the way through upload (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 9 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 | « handler/mac/crash_report_upload_thread.cc ('k') | minidump/minidump_crashpad_info_writer.cc » ('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,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and 12 // See the License for the specific language governing permissions and
13 // limitations under the License. 13 // limitations under the License.
14 14
15 #ifndef CRASHPAD_MINIDUMP_MINIDUMP_CRASHPAD_INFO_WRITER_H_ 15 #ifndef CRASHPAD_MINIDUMP_MINIDUMP_CRASHPAD_INFO_WRITER_H_
16 #define CRASHPAD_MINIDUMP_MINIDUMP_CRASHPAD_INFO_WRITER_H_ 16 #define CRASHPAD_MINIDUMP_MINIDUMP_CRASHPAD_INFO_WRITER_H_
17 17
18 #include <vector> 18 #include <vector>
19 19
20 #include "base/basictypes.h" 20 #include "base/basictypes.h"
21 #include "base/memory/scoped_ptr.h" 21 #include "base/memory/scoped_ptr.h"
22 #include "minidump/minidump_extensions.h" 22 #include "minidump/minidump_extensions.h"
23 #include "minidump/minidump_stream_writer.h" 23 #include "minidump/minidump_stream_writer.h"
24 #include "util/misc/uuid.h"
24 25
25 namespace crashpad { 26 namespace crashpad {
26 27
27 class MinidumpModuleCrashpadInfoListWriter; 28 class MinidumpModuleCrashpadInfoListWriter;
28 class MinidumpSimpleStringDictionaryWriter; 29 class MinidumpSimpleStringDictionaryWriter;
29 class ProcessSnapshot; 30 class ProcessSnapshot;
30 31
31 //! \brief The writer for a MinidumpCrashpadInfo stream in a minidump file. 32 //! \brief The writer for a MinidumpCrashpadInfo stream in a minidump file.
32 class MinidumpCrashpadInfoWriter final : public internal::MinidumpStreamWriter { 33 class MinidumpCrashpadInfoWriter final : public internal::MinidumpStreamWriter {
33 public: 34 public:
(...skipping 10 matching lines...) Expand all
44 //! will be included. For module information, usefulness is determined by 45 //! will be included. For module information, usefulness is determined by
45 //! MinidumpModuleCrashpadInfoListWriter::IsUseful(). 46 //! MinidumpModuleCrashpadInfoListWriter::IsUseful().
46 //! 47 //!
47 //! \param[in] process_snapshot The process snapshot to use as source data. 48 //! \param[in] process_snapshot The process snapshot to use as source data.
48 //! 49 //!
49 //! \note Valid in #kStateMutable. No mutator methods may be called before 50 //! \note Valid in #kStateMutable. No mutator methods may be called before
50 //! this method, and it is not normally necessary to call any mutator 51 //! this method, and it is not normally necessary to call any mutator
51 //! methods after this method. 52 //! methods after this method.
52 void InitializeFromSnapshot(const ProcessSnapshot* process_snapshot); 53 void InitializeFromSnapshot(const ProcessSnapshot* process_snapshot);
53 54
55 //! \brief Sets MinidumpCrashpadInfo::client_id.
56 void SetClientID(const UUID& client_id);
57
54 //! \brief Arranges for MinidumpCrashpadInfo::simple_annotations to point to 58 //! \brief Arranges for MinidumpCrashpadInfo::simple_annotations to point to
55 //! the MinidumpSimpleStringDictionaryWriter object to be written by \a 59 //! the MinidumpSimpleStringDictionaryWriter object to be written by \a
56 //! simple_annotations. 60 //! simple_annotations.
57 //! 61 //!
58 //! This object takes ownership of \a simple_annotations and becomes its 62 //! This object takes ownership of \a simple_annotations and becomes its
59 //! parent in the overall tree of internal::MinidumpWritable objects. 63 //! parent in the overall tree of internal::MinidumpWritable objects.
60 //! 64 //!
61 //! \note Valid in #kStateMutable. 65 //! \note Valid in #kStateMutable.
62 void SetSimpleAnnotations( 66 void SetSimpleAnnotations(
63 scoped_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations); 67 scoped_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 MinidumpCrashpadInfo crashpad_info_; 100 MinidumpCrashpadInfo crashpad_info_;
97 scoped_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations_; 101 scoped_ptr<MinidumpSimpleStringDictionaryWriter> simple_annotations_;
98 scoped_ptr<MinidumpModuleCrashpadInfoListWriter> module_list_; 102 scoped_ptr<MinidumpModuleCrashpadInfoListWriter> module_list_;
99 103
100 DISALLOW_COPY_AND_ASSIGN(MinidumpCrashpadInfoWriter); 104 DISALLOW_COPY_AND_ASSIGN(MinidumpCrashpadInfoWriter);
101 }; 105 };
102 106
103 } // namespace crashpad 107 } // namespace crashpad
104 108
105 #endif // CRASHPAD_MINIDUMP_MINIDUMP_CRASHPAD_INFO_WRITER_H_ 109 #endif // CRASHPAD_MINIDUMP_MINIDUMP_CRASHPAD_INFO_WRITER_H_
OLDNEW
« no previous file with comments | « handler/mac/crash_report_upload_thread.cc ('k') | minidump/minidump_crashpad_info_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698