Extend EnrollmentHandler to handle consumer management.
[chromium-blink-merge.git] / chrome / browser / crash_upload_list_win.h
blobfd93e226df0255459fbee3b5c3c59965643a6aed
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 "chrome/browser/crash_upload_list.h"
9 #include "base/compiler_specific.h"
11 // A CrashUploadList that retrieves the list of reported crashes
12 // from the Windows Event Log.
13 class CrashUploadListWin : public CrashUploadList {
14 public:
15 CrashUploadListWin(Delegate* delegate, const base::FilePath& upload_log_path);
17 protected:
18 // Loads the list of crashes from the Windows Event Log.
19 virtual void LoadUploadList() OVERRIDE;
21 private:
22 // Returns whether the event record is likely a Chrome crash log.
23 bool IsPossibleCrashLogRecord(EVENTLOGRECORD* record) const;
25 // Parses the event record and adds it to the crash list.
26 void ProcessPossibleCrashLogRecord(EVENTLOGRECORD* record);
28 DISALLOW_COPY_AND_ASSIGN(CrashUploadListWin);
31 #endif // CHROME_BROWSER_CRASH_UPLOAD_LIST_WIN_H_