Chromium Code Reviews| Index: chrome/browser/chromeos/policy/system_log_delegate.h |
| diff --git a/chrome/browser/chromeos/policy/system_log_delegate.h b/chrome/browser/chromeos/policy/system_log_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fea49888a9c99822345709137c369be8f4edc570 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/policy/system_log_delegate.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_POLICY_SYSTEM_LOG_DELEGATE_H_ |
| +#define CHROME_BROWSER_CHROMEOS_POLICY_SYSTEM_LOG_DELEGATE_H_ |
| + |
| +#include "chrome/browser/chromeos/policy/system_log_upload_job.h" |
| +#include "chrome/browser/chromeos/policy/upload_job.h" |
| + |
| +namespace policy { |
| + |
| +// An implementation of the |SystemLogUploadJob::Delegate|. |
| +class SystemLogDelegate : public SystemLogUploadJob::Delegate { |
| + public: |
| + SystemLogDelegate(); |
| + ~SystemLogDelegate() override; |
| + |
| + // SystemLogUploadJob::Delegate: |
| + void LoadSystemLogs( |
| + const SystemLogUploadJob::LogUploadCallback& upload_callback) override; |
| + |
| + scoped_ptr<UploadJob> CreateUploadJob(const GURL& upload_url, |
| + UploadJob::Delegate* delegate) override; |
| + |
| + private: |
| + 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.
|
| + |
| + base::WeakPtrFactory<SystemLogDelegate> weak_ptr_factory_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(SystemLogDelegate); |
| +}; |
| + |
| +} // namespace policy |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_POLICY_SYSTEM_LOG_DELEGATE_H_ |