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_SYSLOGS_SYSLOGS_FETCHER_FACTORY_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_SYSLOGS_SYSLOGS_FETCHER_FACTORY_H_ | |
| 7 | |
| 8 #include "base/memory/singleton.h" | |
| 9 | |
| 10 namespace chromeos { | |
| 11 | |
| 12 class SysLogsFetcher; | |
| 13 | |
| 14 // Provides a singleton SysLogsFetcherFactory that can be used to create | |
| 15 // a SysLogsFetcher object that is used to fetch logs. | |
| 16 class SysLogsFetcherFactory { | |
| 17 public: | |
| 18 static SysLogsFetcherFactory* GetInstance(); | |
|
satorux1
2012/08/07 01:15:07
the indentation is off.
tudalex(Chromium)
2012/08/07 23:46:54
Done.
| |
| 19 SysLogsFetcher* CreateFetcher(); | |
| 20 | |
| 21 private: | |
| 22 friend struct DefaultSingletonTraits<SysLogsFetcherFactory>; | |
| 23 | |
| 24 SysLogsFetcherFactory() {} | |
| 25 ~SysLogsFetcherFactory() {} | |
| 26 | |
| 27 DISALLOW_COPY_AND_ASSIGN(SysLogsFetcherFactory); | |
| 28 | |
|
satorux1
2012/08/07 01:15:07
no blank line here
tudalex(Chromium)
2012/08/07 23:46:54
Done.
| |
| 29 }; | |
| 30 | |
| 31 } // namespace chromeos | |
| 32 | |
| 33 #endif // CHROME_BROWSER_CHROMEOS_SYSLOGS_SYSLOGS_FETCHER_FACTORY_H_ | |
| 34 | |
| OLD | NEW |