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

Unified Diff: components/nacl/common/pnacl_types.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: take out progress IPC for now Created 7 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 | « components/nacl/common/nacl_host_messages.h ('k') | components/nacl/common/pnacl_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/common/pnacl_types.h
diff --git a/components/nacl/common/pnacl_types.h b/components/nacl/common/pnacl_types.h
index 802319bd7110934b0e9acba263d8a241d81ed45c..3fc405a980da7186191c61c14c7a787f3c8ab5c0 100644
--- a/components/nacl/common/pnacl_types.h
+++ b/components/nacl/common/pnacl_types.h
@@ -9,6 +9,7 @@
// nacl_types is built into nacl_helper in addition to chrome, and we don't
// want to pull src/url/ into there, since it would be unnecessary bloat.
+#include "base/basictypes.h"
#include "base/time/time.h"
#include "url/gurl.h"
@@ -28,6 +29,20 @@ struct PnaclCacheInfo {
std::string etag;
};
+// Progress information for PNaCl on-demand installs.
+struct PnaclInstallProgress {
+ int64 current;
+ int64 total_size;
+
+ // Returns an instance of PnaclInstallProgress where the
+ // total is marked as unknown.
+ static PnaclInstallProgress Unknown();
+
+ // Returns true if the given instance of PnaclInstallProgress has
+ // an unknown total.
+ static bool progress_known(const PnaclInstallProgress& p);
+};
+
} // namespace nacl
#endif // COMPONENTS_NACL_COMMON_PNACL_TYPES_H_
« no previous file with comments | « components/nacl/common/nacl_host_messages.h ('k') | components/nacl/common/pnacl_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698