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(); | |
| 19 SysLogsFetcher* CreateFetcher(); | |
| 20 | |
| 21 private: | |
| 22 friend struct DefaultSingletonTraits<SysLogsFetcherFactory>; | |
|
satorux1
2012/08/08 22:01:03
singleton should be avoided. can you make this a m
tudalex(Chromium)
2012/08/09 02:30:24
Talked to rkc@ and decided that we don't need this
| |
| 23 | |
| 24 SysLogsFetcherFactory() {} | |
| 25 ~SysLogsFetcherFactory() {} | |
| 26 | |
| 27 DISALLOW_COPY_AND_ASSIGN(SysLogsFetcherFactory); | |
| 28 }; | |
| 29 | |
| 30 } // namespace chromeos | |
| 31 | |
| 32 #endif // CHROME_BROWSER_CHROMEOS_SYSLOGS_SYSLOGS_FETCHER_FACTORY_H_ | |
| 33 | |
| OLD | NEW |