Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 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_SYSTEM_SYSLOGS_FETCHER_FACTORY_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_SYSLOGS_FETCHER_FACTORY_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "base/bind.h" | |
| 12 #include "base/bind_helpers.h" | |
| 13 #include "base/callback.h" | |
| 14 #include "base/memory/singleton.h" | |
| 15 #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.
| |
| 16 #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.
| |
| 17 | |
| 18 namespace chromeos { | |
| 19 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.
| |
| 20 | |
| 21 class SysLogsFetcherFactory { | |
| 22 public: | |
| 23 static SysLogsFetcherFactory* GetInstance(); | |
| 24 SysLogsFetcher * GetFetcher(); | |
|
rkc1
2012/08/04 01:15:05
SysLogsFetcher*
tudalex(Chromium)
2012/08/05 01:15:12
Done.
| |
| 25 | |
| 26 private: | |
| 27 SysLogsFetcherFactory() {} | |
| 28 ~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.
| |
| 29 friend struct DefaultSingletonTraits<SysLogsFetcherFactory>; | |
| 30 }; | |
| 31 | |
| 32 } // namespace system | |
| 33 } // namespace chromeos | |
| 34 | |
| 35 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_SYSLOGS_FETCHER_FACTORY_H_ | |
| OLD | NEW |