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

Unified Diff: components/nacl/common/nacl_browser_delegate.h

Issue 19863003: PNaCl on-demand installs: Make a separate async IPC to check if PNaCl is installed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const ref Created 7 years, 5 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: components/nacl/common/nacl_browser_delegate.h
diff --git a/components/nacl/common/nacl_browser_delegate.h b/components/nacl/common/nacl_browser_delegate.h
index 60528918f2c30cad841159d40ac5038833e81b62..6cff071716e1c2ce12dc1ecdd64b9cfb2ede868a 100644
--- a/components/nacl/common/nacl_browser_delegate.h
+++ b/components/nacl/common/nacl_browser_delegate.h
@@ -7,6 +7,8 @@
#include <string>
+#include "base/callback_forward.h"
+
namespace base {
class FilePath;
}
@@ -53,6 +55,12 @@ class NaClBrowserDelegate {
// Returns a HostFactory that hides the details of its embedder.
virtual ppapi::host::HostFactory* CreatePpapiHostFactory(
content::BrowserPpapiHost* ppapi_host) = 0;
+ // Install PNaCl if this operation is supported. On success, the |installed|
+ // callback should be called with true, and on failure (or not supported),
+ // the |installed| callback should be called with false.
+ // TODO(jvoung): Add the progress callback as well.
+ virtual void TryInstallPnacl(
+ const base::Callback<void(bool)>& installed) = 0;
};
#endif // COMPONENTS_NACL_COMMON_NACL_BROWSER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698