Chromium Code Reviews| Index: chrome/browser/chromeos/syslogs/syslogs_fetcher_factory.h |
| diff --git a/chrome/browser/chromeos/syslogs/syslogs_fetcher_factory.h b/chrome/browser/chromeos/syslogs/syslogs_fetcher_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a9d6497b526b961c183dab5f0359e41e8871bcfb |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/syslogs/syslogs_fetcher_factory.h |
| @@ -0,0 +1,34 @@ |
| +// 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_SYSLOGS_SYSLOGS_FETCHER_FACTORY_H_ |
| +#define CHROME_BROWSER_CHROMEOS_SYSLOGS_SYSLOGS_FETCHER_FACTORY_H_ |
| + |
| +#include "base/memory/singleton.h" |
| + |
| +namespace chromeos { |
| + |
| +class SysLogsFetcher; |
| + |
| +// Provides a singleton SysLogsFetcherFactory that can be used to create |
| +// a SysLogsFetcher object that is used to fetch logs. |
| +class SysLogsFetcherFactory { |
| + public: |
| + static SysLogsFetcherFactory* GetInstance(); |
|
satorux1
2012/08/07 01:15:07
the indentation is off.
tudalex(Chromium)
2012/08/07 23:46:54
Done.
|
| + SysLogsFetcher* CreateFetcher(); |
| + |
| + private: |
| + friend struct DefaultSingletonTraits<SysLogsFetcherFactory>; |
| + |
| + SysLogsFetcherFactory() {} |
| + ~SysLogsFetcherFactory() {} |
| + |
| + DISALLOW_COPY_AND_ASSIGN(SysLogsFetcherFactory); |
| + |
|
satorux1
2012/08/07 01:15:07
no blank line here
tudalex(Chromium)
2012/08/07 23:46:54
Done.
|
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_SYSLOGS_SYSLOGS_FETCHER_FACTORY_H_ |
| + |