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

Side by Side Diff: chrome/browser/chromeos/policy/system_log_delegate.h

Issue 1193333017: Added system log uploader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved SystemLogUploadJob creation to DeviceCloudPolicyManager. Created 5 years, 6 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
OLDNEW
(Empty)
1 // Copyright 2015 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_CHROMEOS_POLICY_SYSTEM_LOG_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_SYSTEM_LOG_DELEGATE_H_
7
8 #include "chrome/browser/chromeos/policy/system_log_upload_job.h"
9 #include "chrome/browser/chromeos/policy/upload_job.h"
10
11 namespace policy {
12
13 // An implementation of the |SystemLogUploadJob::Delegate|.
14 class SystemLogDelegate : public SystemLogUploadJob::Delegate {
15 public:
16 SystemLogDelegate();
17 ~SystemLogDelegate() override;
18
19 // SystemLogUploadJob::Delegate:
20 void LoadSystemLogs(
21 const SystemLogUploadJob::LogUploadCallback& upload_callback) override;
22
23 scoped_ptr<UploadJob> CreateUploadJob(const GURL& upload_url,
24 UploadJob::Delegate* delegate) override;
25
26 private:
27 std::map<std::string, std::string> ReadFiles();
Andrew T Wilson (Slow) 2015/06/29 15:06:09 Describe what this is passing back - what are the
Polina Bondarenko 2015/07/02 15:28:03 Added comment, changed API.
28
29 base::WeakPtrFactory<SystemLogDelegate> weak_ptr_factory_;
30
31 DISALLOW_COPY_AND_ASSIGN(SystemLogDelegate);
32 };
33
34 } // namespace policy
35
36 #endif // CHROME_BROWSER_CHROMEOS_POLICY_SYSTEM_LOG_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698