Chromium Code Reviews| Index: chrome/browser/chromeos/system/syslogs_fetcher_factory.h |
| diff --git a/chrome/browser/chromeos/system/syslogs_fetcher_factory.h b/chrome/browser/chromeos/system/syslogs_fetcher_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c182009d34f4ab5adaacb3091470ec614c389d4b |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/system/syslogs_fetcher_factory.h |
| @@ -0,0 +1,35 @@ |
| +// 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_SYSLOGS_FETCHER_FACTORY_H_ |
| +#define CHROME_BROWSER_CHROMEOS_SYSTEM_SYSLOGS_FETCHER_FACTORY_H_ |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +#include "base/bind.h" |
| +#include "base/bind_helpers.h" |
| +#include "base/callback.h" |
| +#include "base/memory/singleton.h" |
| +#include "base/synchronization/lock.h" |
|
rkc1
2012/08/04 01:15:05
Don't need several of these headers.
tudalex(Chromium)
2012/08/05 01:15:12
Done.
|
| +#include "chrome/browser/chromeos/system/syslogs_fetcher.h" |
|
rkc1
2012/08/04 01:15:05
Replace this include with,
class SysLogFetcher;
tudalex(Chromium)
2012/08/05 01:15:12
Done.
|
| + |
| +namespace chromeos { |
| +namespace system { |
|
rkc1
2012/08/04 01:15:05
This namespace is unnecessary.
Also, move the logs
tudalex(Chromium)
2012/08/05 01:15:12
Done.
|
| + |
| +class SysLogsFetcherFactory { |
| + public: |
| + static SysLogsFetcherFactory* GetInstance(); |
| + SysLogsFetcher * GetFetcher(); |
|
rkc1
2012/08/04 01:15:05
SysLogsFetcher*
tudalex(Chromium)
2012/08/05 01:15:12
Done.
|
| + |
| + private: |
| + SysLogsFetcherFactory() {} |
| + ~SysLogsFetcherFactory() {} |
|
rkc1
2012/08/04 01:15:05
Run Clang bots to make sure this is kosher.
tudalex(Chromium)
2012/08/05 01:15:12
Need rights first.
|
| + friend struct DefaultSingletonTraits<SysLogsFetcherFactory>; |
| +}; |
| + |
| +} // namespace system |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_SYSTEM_SYSLOGS_FETCHER_FACTORY_H_ |