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

Unified Diff: chrome/browser/component_updater/pnacl/pnacl_component_installer.h

Issue 12184029: Make pnacl install on demand when it is not already installed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forward decl Created 7 years, 10 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/component_updater/pnacl/pnacl_component_installer.h
diff --git a/chrome/browser/component_updater/pnacl/pnacl_component_installer.h b/chrome/browser/component_updater/pnacl/pnacl_component_installer.h
index ffcc3535c07abd0184396b6edd93d81256a96b70..3174551c18680c72e8baf99dd5bc36624d2e0581 100644
--- a/chrome/browser/component_updater/pnacl/pnacl_component_installer.h
+++ b/chrome/browser/component_updater/pnacl/pnacl_component_installer.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_
#define CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_
+#include "base/callback_forward.h"
+
class ComponentUpdateService;
class Version;
@@ -20,4 +22,11 @@ void RegisterPnaclComponent(ComponentUpdateService* cus);
bool CheckPnaclComponentManifest(base::DictionaryValue* manifest,
Version* version_out);
+// Ask the given component update service to check for an update.
+// The |installed| callback will be run with |true| on success,
+// or run with |false| on an error.
+// The callback is called on the UI thread.
+void CheckUpdatesForPnacl(ComponentUpdateService* cus,
+ const base::Callback<void(bool)>& installed);
+
#endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_

Powered by Google App Engine
This is Rietveld 408576698