OLD | NEW |
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_APP_BREAKPAD_CLIENT_H_ | 5 #ifndef COMPONENTS_BREAKPAD_APP_BREAKPAD_CLIENT_H_ |
6 #define COMPONENTS_BREAKPAD_APP_BREAKPAD_CLIENT_H_ | 6 #define COMPONENTS_BREAKPAD_APP_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 28 matching lines...) Expand all Loading... |
39 #endif | 39 #endif |
40 | 40 |
41 // Interface that the embedder implements. | 41 // Interface that the embedder implements. |
42 class BreakpadClient { | 42 class BreakpadClient { |
43 public: | 43 public: |
44 BreakpadClient(); | 44 BreakpadClient(); |
45 virtual ~BreakpadClient(); | 45 virtual ~BreakpadClient(); |
46 | 46 |
47 // Sets the Breakpad client ID, which is a unique identifier for the client | 47 // Sets the Breakpad client ID, which is a unique identifier for the client |
48 // that is sending crash reports. After it is set, it should not be changed. | 48 // that is sending crash reports. After it is set, it should not be changed. |
49 virtual void SetClientID(const std::string& client_id); | 49 virtual void InitClientID(const std::string& client_id); |
50 | 50 |
51 #if defined(OS_WIN) | 51 #if defined(OS_WIN) |
52 // Returns true if an alternative location to store the minidump files was | 52 // Returns true if an alternative location to store the minidump files was |
53 // specified. Returns true if |crash_dir| was set. | 53 // specified. Returns true if |crash_dir| was set. |
54 virtual bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir); | 54 virtual bool GetAlternativeCrashDumpLocation(base::FilePath* crash_dir); |
55 | 55 |
56 // Returns a textual description of the product type and version to include | 56 // Returns a textual description of the product type and version to include |
57 // in the crash report. | 57 // in the crash report. |
58 virtual void GetProductNameAndVersion(const base::FilePath& exe_path, | 58 virtual void GetProductNameAndVersion(const base::FilePath& exe_path, |
59 base::string16* product_name, | 59 base::string16* product_name, |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 virtual void InstallAdditionalFilters(BreakpadRef breakpad); | 132 virtual void InstallAdditionalFilters(BreakpadRef breakpad); |
133 #endif | 133 #endif |
134 | 134 |
135 // Returns true if breakpad should run in the given process type. | 135 // Returns true if breakpad should run in the given process type. |
136 virtual bool EnableBreakpadForProcess(const std::string& process_type); | 136 virtual bool EnableBreakpadForProcess(const std::string& process_type); |
137 }; | 137 }; |
138 | 138 |
139 } // namespace breakpad | 139 } // namespace breakpad |
140 | 140 |
141 #endif // COMPONENTS_BREAKPAD_APP_BREAKPAD_CLIENT_H_ | 141 #endif // COMPONENTS_BREAKPAD_APP_BREAKPAD_CLIENT_H_ |
OLD | NEW |