Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: chrome/browser/chromeos/syslogs/syslogs_fetcher_factory.h

Issue 10827130: Refactoring the SysInfoProvider. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698