| Index: chrome/browser/chromeos/system_logs/lsbrelease_log_source.h
|
| diff --git a/chrome/browser/chromeos/system_logs/lsbrelease_log_source.h b/chrome/browser/chromeos/system_logs/lsbrelease_log_source.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cda4972743d5d50ef05298155112588491349e54
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/system_logs/lsbrelease_log_source.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright (c) 2012 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_SYSTEM_LOGS_LSBRELEASE_LOG_SOURCE_H_
|
| +#define CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_LSBRELEASE_LOG_SOURCE_H_
|
| +
|
| +#include "chrome/browser/chromeos/system_logs/system_logs_fetcher.h"
|
| +
|
| +namespace chromeos {
|
| +
|
| +// Fetches release information form /etc/lsb-release file.
|
| +class LsbReleaseLogSource : public SystemLogsSource {
|
| + public:
|
| + LsbReleaseLogSource() {}
|
| + virtual ~LsbReleaseLogSource() {}
|
| +
|
| + // SystemLogsSource override.
|
| + virtual void Fetch(const SysLogsFetcherCallback& request) OVERRIDE;
|
| +
|
| + private:
|
| + // Gets the info from the /etc/lsb-release and parses it
|
| + static void Execute(SystemLogsResponse* response);
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(LsbReleaseLogSource);
|
| +};
|
| +
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_SYSTEM_LOGS_LSBRELEASE_LOG_SOURCE_H_
|
|
|