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

Side by Side Diff: components/breakpad/breakpad_client.h

Issue 27031002: Move checking of configured policy on win to breakpad client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/chrome_breakpad_client_mac.mm ('k') | components/breakpad/breakpad_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_BREAKPAD_BREAKPAD_CLIENT_H_ 5 #ifndef COMPONENTS_BREAKPAD_BREAKPAD_CLIENT_H_
6 #define COMPONENTS_BREAKPAD_BREAKPAD_CLIENT_H_ 6 #define COMPONENTS_BREAKPAD_BREAKPAD_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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // Register all of the potential crash keys that can be sent to the crash 113 // Register all of the potential crash keys that can be sent to the crash
114 // reporting server. Returns the size of the union of all keys. 114 // reporting server. Returns the size of the union of all keys.
115 virtual size_t RegisterCrashKeys(); 115 virtual size_t RegisterCrashKeys();
116 116
117 // Returns true if running in unattended mode (for automated testing). 117 // Returns true if running in unattended mode (for automated testing).
118 virtual bool IsRunningUnattended(); 118 virtual bool IsRunningUnattended();
119 119
120 #if defined(OS_WIN) || defined(OS_MACOSX) 120 #if defined(OS_WIN) || defined(OS_MACOSX)
121 // Returns true if the user has given consent to collect stats. 121 // Returns true if the user has given consent to collect stats.
122 virtual bool GetCollectStatsConsent(); 122 virtual bool GetCollectStatsConsent();
123
124 // Returns true if breakpad is enforced via management policies. In that
125 // case, |breakpad_enabled| is set to the value enforced by policies.
126 virtual bool ReportingIsEnforcedByPolicy(bool* breakpad_enabled);
123 #endif 127 #endif
124 128
125 #if defined(OS_ANDROID) 129 #if defined(OS_ANDROID)
126 // Returns the descriptor key of the android minidump global descriptor. 130 // Returns the descriptor key of the android minidump global descriptor.
127 virtual int GetAndroidMinidumpDescriptor(); 131 virtual int GetAndroidMinidumpDescriptor();
128 #endif 132 #endif
129 133
130 #if defined(OS_MACOSX) 134 #if defined(OS_MACOSX)
131 // Install additional breakpad filter callbacks. 135 // Install additional breakpad filter callbacks.
132 virtual void InstallAdditionalFilters(BreakpadRef breakpad); 136 virtual void InstallAdditionalFilters(BreakpadRef breakpad);
133
134 // Returns true if breakpad is enforced via management policies.
135 virtual bool ReportingIsEnforcedByPolicy();
136 #endif 137 #endif
137 }; 138 };
138 139
139 } // namespace breakpad 140 } // namespace breakpad
140 141
141 #endif // COMPONENTS_BREAKPAD_BREAKPAD_CLIENT_H_ 142 #endif // COMPONENTS_BREAKPAD_BREAKPAD_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/app/chrome_breakpad_client_mac.mm ('k') | components/breakpad/breakpad_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698