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

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..1b4b502ffe1b9a7f8e53978b8cb4227f08592e54
--- /dev/null
+++ b/chrome/browser/chromeos/syslogs/syslogs_fetcher_factory.h
@@ -0,0 +1,31 @@
+// 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 <string>
+#include <vector>
+
+#include "base/memory/singleton.h"
+
+namespace chromeos {
+
+class SysLogsFetcher;
+
+class SysLogsFetcherFactory {
+ public:
+ static SysLogsFetcherFactory* GetInstance();
+ SysLogsFetcher* CreateFetcher();
+
+ private:
+ SysLogsFetcherFactory() {}
+ ~SysLogsFetcherFactory() {}
+ friend struct DefaultSingletonTraits<SysLogsFetcherFactory>;
rkc 2012/08/06 18:30:18 Move the friend above the ctor/dtor, add a newline
tudalex(Chromium) 2012/08/06 19:14:22 Done.
+
rkc 2012/08/06 18:30:18 DISALLOW_COPY_AND_ASSIGN? friend goes right below
tudalex(Chromium) 2012/08/06 19:14:22 Done.
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_SYSLOGS_SYSLOGS_FETCHER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698