1 // Copyright (c) 2011 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.
5 #ifndef CHROME_BROWSER_CRASH_UPLOAD_LIST_WIN_H_
6 #define CHROME_BROWSER_CRASH_UPLOAD_LIST_WIN_H_
8 #include "base/macros.h"
9 #include "components/upload_list/crash_upload_list.h"
13 class SequencedWorkerPool
;
16 // A CrashUploadList that retrieves the list of reported crashes
17 // from the Windows Event Log.
18 class CrashUploadListWin
: public CrashUploadList
{
22 const base::FilePath
& upload_log_path
,
23 const scoped_refptr
<base::SequencedWorkerPool
>& worker_pool
);
26 // Loads the list of crashes from the Windows Event Log.
27 void LoadUploadList() override
;
30 ~CrashUploadListWin() override
;
32 // Returns whether the event record is likely a Chrome crash log.
33 bool IsPossibleCrashLogRecord(EVENTLOGRECORD
* record
) const;
35 // Parses the event record and adds it to the crash list.
36 void ProcessPossibleCrashLogRecord(EVENTLOGRECORD
* record
);
38 DISALLOW_COPY_AND_ASSIGN(CrashUploadListWin
);
41 #endif // CHROME_BROWSER_CRASH_UPLOAD_LIST_WIN_H_