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

Unified Diff: chrome/browser/chromeos/system/sysinfo_provider.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
« no previous file with comments | « no previous file | chrome/browser/chromeos/system/sysinfo_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/system/sysinfo_provider.h
diff --git a/chrome/browser/chromeos/system/sysinfo_provider.h b/chrome/browser/chromeos/system/sysinfo_provider.h
deleted file mode 100644
index 27a7da6d6d6c199b1775cc8ee17e4897ec8ade93..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/system/sysinfo_provider.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// 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_SYSINFO_PROVIDER_H_
-#define CHROME_BROWSER_CHROMEOS_SYSTEM_SYSINFO_PROVIDER_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "chrome/browser/cancelable_request.h"
-
-class CancelableRequestConsumerBase;
-
-namespace chromeos {
-namespace system {
-
-typedef std::map<std::string, std::string> SysInfoResponse;
-
-// Provides CancelableRequests for fetching system info (network state, etc)
-// from the ChromeOS debug daemon.
-class SysInfoProvider : public CancelableRequestProvider {
- public:
- // Allocates a new SysInfoProvider and returns it.
- static SysInfoProvider* Create();
- virtual ~SysInfoProvider() {}
-
- typedef base::Callback<void(SysInfoResponse*)> FetchCompleteCallback;
-
- // Fetches system info from the debug daemon, attributing the request to
- // |consumer|. Calls |callback| when all information has been fetched.
- virtual Handle Fetch(CancelableRequestConsumerBase* consumer,
- const FetchCompleteCallback& callback) = 0;
-};
-
-} // namespace system
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_SYSTEM_SYSINFO_PROVIDER_H_
« no previous file with comments | « no previous file | chrome/browser/chromeos/system/sysinfo_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698