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

Side by Side Diff: blimp/engine/app/blimp_engine_crash_reporter_client.h

Issue 1925993004: Initial addition of Blimp engine crash client code (take 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/::crash_keys/crash_keys/ Created 4 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BLIMP_ENGINE_APP_BLIMP_ENGINE_CRASH_REPORTER_CLIENT_H_
6 #define BLIMP_ENGINE_APP_BLIMP_ENGINE_CRASH_REPORTER_CLIENT_H_
7
8 #include <stddef.h>
9
10 #include <string>
11
12 #include "base/macros.h"
13 #include "components/crash/content/app/crash_reporter_client.h"
14
15 namespace blimp {
16 namespace engine {
17
18 // Crash reporter client for the Blimp engine. This will always collect crash
19 // reports, and will always upload reports unless running in a "headless" test
20 // mode.
21 // This is intended to be built with a Linux OS target only.
22 class BlimpEngineCrashReporterClient
23 : public crash_reporter::CrashReporterClient {
24 public:
25 BlimpEngineCrashReporterClient();
26 ~BlimpEngineCrashReporterClient() override;
27
28 void SetCrashReporterClientIdFromGUID(
Kevin M 2016/05/02 22:05:32 private: // CrashReporterClient implementation.
marcinjb 2016/05/03 18:06:58 Done.
29 const std::string& client_guid) override;
30 void GetProductNameAndVersion(const char** product_name,
31 const char** version) override;
32 size_t RegisterCrashKeys() override;
33 bool IsRunningUnattended() override;
34 bool GetCollectStatsConsent() override;
35 bool EnableBreakpadForProcess(const std::string& process_type) override;
36
37 private:
38 DISALLOW_COPY_AND_ASSIGN(BlimpEngineCrashReporterClient);
39 };
40
41 } // namespace engine
42 } // namespace blimp
43
44 #endif // BLIMP_ENGINE_APP_BLIMP_ENGINE_CRASH_REPORTER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698