| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 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 CHROME_APP_KASKO_CLIENT_H_ | |
| 6 #define CHROME_APP_KASKO_CLIENT_H_ | |
| 7 | |
| 8 #include "third_party/kasko/kasko_features.h" | |
| 9 | |
| 10 #if BUILDFLAG(ENABLE_KASKO) | |
| 11 | |
| 12 #include "base/macros.h" | |
| 13 #include "syzygy/kasko/api/minidump_type.h" | |
| 14 | |
| 15 class ChromeWatcherClient; | |
| 16 | |
| 17 // Manages the lifetime of Chrome's Kasko client, which permits crash reporting | |
| 18 // via Kasko. Only a single instance of this class may be instantiated at any | |
| 19 // time, and it must only be destroyed when the process is single-threaded. | |
| 20 class KaskoClient { | |
| 21 public: | |
| 22 // Initializes a Kasko client that will communicate with the Kasko reporter | |
| 23 // hosted by the Chrome watcher process managed by |chrome_watcher_client|. | |
| 24 // All generated reports will use |minidump_type|. | |
| 25 KaskoClient(ChromeWatcherClient* chrome_watcher_client, | |
| 26 kasko::api::MinidumpType minidump_type); | |
| 27 ~KaskoClient(); | |
| 28 | |
| 29 private: | |
| 30 DISALLOW_COPY_AND_ASSIGN(KaskoClient); | |
| 31 }; | |
| 32 | |
| 33 #endif // BUILDFLAG(ENABLE_KASKO) | |
| 34 | |
| 35 #endif // CHROME_APP_KASKO_CLIENT_H_ | |
| OLD | NEW |