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

Side by Side Diff: chrome/browser/crash_upload_list/crash_upload_list_android.h

Issue 2324983002: [Android] Wire up manual crash uploads. (Closed)
Patch Set: Fix pending upload handling, and nit fixes Created 4 years, 3 months 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/crash_upload_list/crash_upload_list_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_ANDROID_H_ 5 #ifndef CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_ANDROID_H_
6 #define CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_ANDROID_H_ 6 #define CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_ANDROID_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/upload_list/crash_upload_list.h" 9 #include "components/upload_list/crash_upload_list.h"
10 10
11 namespace base { 11 namespace base {
12 class FilePath; 12 class FilePath;
13 class TaskRunner; 13 class TaskRunner;
14 } 14 }
15 15
16 // A CrashUploadList that retrieves the list of uploaded reports from the 16 // A CrashUploadList that retrieves the list of uploaded reports from the
17 // Android crash reporter. 17 // Android crash reporter.
18 class CrashUploadListAndroid : public CrashUploadList { 18 class CrashUploadListAndroid : public CrashUploadList {
19 public: 19 public:
20 CrashUploadListAndroid(Delegate* delegate, 20 CrashUploadListAndroid(Delegate* delegate,
21 const base::FilePath& upload_log_path, 21 const base::FilePath& upload_log_path,
22 scoped_refptr<base::TaskRunner> task_runner); 22 scoped_refptr<base::TaskRunner> task_runner);
23 23
24 protected: 24 protected:
25 ~CrashUploadListAndroid() override; 25 ~CrashUploadListAndroid() override;
26 26
27 // Called on a blocking pool thread. 27 // Called on a blocking pool thread.
28 void LoadUploadList(std::vector<UploadInfo>* uploads) override; 28 void LoadUploadList(std::vector<UploadInfo>* uploads) override;
29 void RequestSingleCrashUpload(const std::string& local_id) override;
29 30
30 private: 31 private:
31 void LoadUnsuccessfulUploadList(std::vector<UploadInfo>* uploads); 32 void LoadUnsuccessfulUploadList(std::vector<UploadInfo>* uploads);
32 33
33 DISALLOW_COPY_AND_ASSIGN(CrashUploadListAndroid); 34 DISALLOW_COPY_AND_ASSIGN(CrashUploadListAndroid);
34 }; 35 };
35 36
36 #endif // CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_ANDROID_H_ 37 #endif // CHROME_BROWSER_CRASH_UPLOAD_LIST_CRASH_UPLOAD_LIST_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/crash_upload_list/crash_upload_list_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698