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

Unified Diff: chrome/browser/chromeos/system/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/system/syslogs_fetcher_factory.h
diff --git a/chrome/browser/chromeos/system/syslogs_fetcher_factory.h b/chrome/browser/chromeos/system/syslogs_fetcher_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..c182009d34f4ab5adaacb3091470ec614c389d4b
--- /dev/null
+++ b/chrome/browser/chromeos/system/syslogs_fetcher_factory.h
@@ -0,0 +1,35 @@
+// 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_SYSTEM_SYSLOGS_FETCHER_FACTORY_H_
+#define CHROME_BROWSER_CHROMEOS_SYSTEM_SYSLOGS_FETCHER_FACTORY_H_
+
+#include <string>
+#include <vector>
+
+#include "base/bind.h"
+#include "base/bind_helpers.h"
+#include "base/callback.h"
+#include "base/memory/singleton.h"
+#include "base/synchronization/lock.h"
rkc1 2012/08/04 01:15:05 Don't need several of these headers.
tudalex(Chromium) 2012/08/05 01:15:12 Done.
+#include "chrome/browser/chromeos/system/syslogs_fetcher.h"
rkc1 2012/08/04 01:15:05 Replace this include with, class SysLogFetcher;
tudalex(Chromium) 2012/08/05 01:15:12 Done.
+
+namespace chromeos {
+namespace system {
rkc1 2012/08/04 01:15:05 This namespace is unnecessary. Also, move the logs
tudalex(Chromium) 2012/08/05 01:15:12 Done.
+
+class SysLogsFetcherFactory {
+ public:
+ static SysLogsFetcherFactory* GetInstance();
+ SysLogsFetcher * GetFetcher();
rkc1 2012/08/04 01:15:05 SysLogsFetcher*
tudalex(Chromium) 2012/08/05 01:15:12 Done.
+
+ private:
+ SysLogsFetcherFactory() {}
+ ~SysLogsFetcherFactory() {}
rkc1 2012/08/04 01:15:05 Run Clang bots to make sure this is kosher.
tudalex(Chromium) 2012/08/05 01:15:12 Need rights first.
+ friend struct DefaultSingletonTraits<SysLogsFetcherFactory>;
+};
+
+} // namespace system
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_SYSTEM_SYSLOGS_FETCHER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698