Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: chrome/browser/crash_upload_list_win.h

Issue 1416133003: Crashpad Windows: Use the Crashpad client instead of Breakpad on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn secondary, mac .S not on windows Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698