| OLD | NEW | 
|---|
|  | (Empty) | 
| 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. |  | 
| 4 |  | 
| 5 #ifndef CHROME_BROWSER_CRASH_UPLOAD_LIST_WIN_H_ |  | 
| 6 #define CHROME_BROWSER_CRASH_UPLOAD_LIST_WIN_H_ |  | 
| 7 |  | 
| 8 #include "base/macros.h" |  | 
| 9 #include "components/upload_list/crash_upload_list.h" |  | 
| 10 |  | 
| 11 namespace base { |  | 
| 12 class FilePath; |  | 
| 13 class SequencedWorkerPool; |  | 
| 14 } |  | 
| 15 |  | 
| 16 // A CrashUploadList that retrieves the list of reported crashes |  | 
| 17 // from the Windows Event Log. |  | 
| 18 class CrashUploadListWin : public CrashUploadList { |  | 
| 19  public: |  | 
| 20   CrashUploadListWin( |  | 
| 21       Delegate* delegate, |  | 
| 22       const base::FilePath& upload_log_path, |  | 
| 23       const scoped_refptr<base::SequencedWorkerPool>& worker_pool); |  | 
| 24 |  | 
| 25  protected: |  | 
| 26   // Loads the list of crashes from the Windows Event Log. |  | 
| 27   void LoadUploadList() override; |  | 
| 28 |  | 
| 29  private: |  | 
| 30   ~CrashUploadListWin() override; |  | 
| 31 |  | 
| 32   // Returns whether the event record is likely a Chrome crash log. |  | 
| 33   bool IsPossibleCrashLogRecord(EVENTLOGRECORD* record) const; |  | 
| 34 |  | 
| 35   // Parses the event record and adds it to the crash list. |  | 
| 36   void ProcessPossibleCrashLogRecord(EVENTLOGRECORD* record); |  | 
| 37 |  | 
| 38   DISALLOW_COPY_AND_ASSIGN(CrashUploadListWin); |  | 
| 39 }; |  | 
| 40 |  | 
| 41 #endif  // CHROME_BROWSER_CRASH_UPLOAD_LIST_WIN_H_ |  | 
| OLD | NEW | 
|---|