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

Side by Side Diff: components/crash/app/crash_reporter_client.h

Issue 904213002: [components/crash] Add crash client method to enable microdumps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « components/crash/app/breakpad_linux.cc ('k') | components/crash/app/crash_reporter_client.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_ 5 #ifndef COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_
6 #define COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_ 6 #define COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 #if defined(OS_WIN) || defined(OS_MACOSX) 129 #if defined(OS_WIN) || defined(OS_MACOSX)
130 // Returns true if crash reporting is enforced via management policies. In 130 // Returns true if crash reporting is enforced via management policies. In
131 // that case, |breakpad_enabled| is set to the value enforced by policies. 131 // that case, |breakpad_enabled| is set to the value enforced by policies.
132 virtual bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled); 132 virtual bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled);
133 #endif 133 #endif
134 134
135 #if defined(OS_ANDROID) 135 #if defined(OS_ANDROID)
136 // Returns the descriptor key of the android minidump global descriptor. 136 // Returns the descriptor key of the android minidump global descriptor.
137 virtual int GetAndroidMinidumpDescriptor(); 137 virtual int GetAndroidMinidumpDescriptor();
138
139 // Returns true if breakpad microdumps should be enabled. This orthogonal to
140 // the standard minidump uploader (which depends on the user consent).
141 virtual bool ShouldEnableBreakpadMicrodumps();
138 #endif 142 #endif
139 143
140 #if defined(OS_MACOSX) 144 #if defined(OS_MACOSX)
141 // Install additional breakpad filter callbacks. 145 // Install additional breakpad filter callbacks.
142 virtual void InstallAdditionalFilters(BreakpadRef breakpad); 146 virtual void InstallAdditionalFilters(BreakpadRef breakpad);
143 #endif 147 #endif
144 148
145 // Returns true if breakpad should run in the given process type. 149 // Returns true if breakpad should run in the given process type.
146 virtual bool EnableBreakpadForProcess(const std::string& process_type); 150 virtual bool EnableBreakpadForProcess(const std::string& process_type);
147 }; 151 };
148 152
149 } // namespace crash_reporter 153 } // namespace crash_reporter
150 154
151 #endif // COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_ 155 #endif // COMPONENTS_CRASH_APP_CRASH_REPORTER_CLIENT_H_
OLDNEW
« no previous file with comments | « components/crash/app/breakpad_linux.cc ('k') | components/crash/app/crash_reporter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698