OLD | NEW |
---|---|
(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_ | |
OLD | NEW |