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

Unified Diff: chrome/browser/ui/webui/help/version_updater_chromeos.h

Issue 9320056: Help: Implement the initial version of the cross-platform help/about page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: String fix. Created 8 years, 11 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/ui/webui/help/version_updater_chromeos.h
diff --git a/chrome/browser/ui/webui/help/version_updater_chromeos.h b/chrome/browser/ui/webui/help/version_updater_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..d6f1256680deb0af135b46e0a42cc8b8fafcae51
--- /dev/null
+++ b/chrome/browser/ui/webui/help/version_updater_chromeos.h
@@ -0,0 +1,39 @@
+// 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_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_
+#define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_
+#pragma once
+
+#include "base/compiler_specific.h"
+#include "chrome/browser/chromeos/dbus/update_engine_client.h"
+#include "chrome/browser/ui/webui/help/version_updater.h"
+
+class VersionUpdaterCros : public VersionUpdater,
+ public chromeos::UpdateEngineClient::Observer {
+ public:
+ // VersionUpdater implementation.
+ virtual bool CanBeUpdated() const OVERRIDE;
Nico 2012/02/05 04:50:28 Doesn't actually override anything.
+ virtual void CheckForUpdate(const StatusCallback& callback) OVERRIDE;
+ virtual void RelaunchBrowser() const OVERRIDE;
+
+ protected:
+ friend class VersionUpdater;
+
+ // Clients must use VersionUpdater::Create().
+ VersionUpdaterCros() {}
+ virtual ~VersionUpdaterCros();
+
+ private:
+ // UpdateEngineClient::Observer implementation.
+ virtual void UpdateStatusChanged(
+ const chromeos::UpdateEngineClient::Status& status) OVERRIDE;
+
+ // Callback used to communicate update status to the client.
+ StatusCallback callback_;
+
+ DISALLOW_COPY_AND_ASSIGN(VersionUpdaterCros);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_

Powered by Google App Engine
This is Rietveld 408576698