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

Unified 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 side-by-side diff with in-line comments
Download patch
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_
+

Powered by Google App Engine
This is Rietveld 408576698