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

Unified Diff: components/nacl/renderer/nexe_load_manager.h

Issue 270453004: Pepper: Clean up ProgressEvent logic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: probable crash fix Created 6 years, 7 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.gyp ('k') | components/nacl/renderer/nexe_load_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/renderer/nexe_load_manager.h
diff --git a/components/nacl/renderer/nexe_load_manager.h b/components/nacl/renderer/nexe_load_manager.h
index ed9dca94ff28feb5a09dd0f68e12209646583c25..878e1ab99da9b35d77481e036cfaa15654f0175c 100644
--- a/components/nacl/renderer/nexe_load_manager.h
+++ b/components/nacl/renderer/nexe_load_manager.h
@@ -52,31 +52,6 @@ class NexeLoadManager {
// The intent is for this class to only expose functions for reporting a
// load state transition (e.g., ReportLoadError, ReportProgress,
// ReportLoadAbort, etc.)
- struct ProgressEvent {
- explicit ProgressEvent(PP_NaClEventType event_type_param)
- : event_type(event_type_param),
- length_is_computable(false),
- loaded_bytes(0),
- total_bytes(0) {
- }
- ProgressEvent(PP_Instance instance, PP_NaClEventType event_type,
- const std::string& resource_url, bool length_is_computable,
- uint64_t loaded_bytes, uint64_t total_bytes)
- : instance(instance),
- event_type(event_type),
- resource_url(resource_url),
- length_is_computable(length_is_computable),
- loaded_bytes(loaded_bytes),
- total_bytes(total_bytes) {
- }
- PP_Instance instance;
- PP_NaClEventType event_type;
- std::string resource_url;
- bool length_is_computable;
- uint64_t loaded_bytes;
- uint64_t total_bytes;
- };
- void DispatchEvent(const ProgressEvent &event);
void set_trusted_plugin_channel(scoped_ptr<TrustedPluginChannel> channel);
void set_manifest_service_channel(
scoped_ptr<ManifestServiceChannel> channel);
« no previous file with comments | « components/nacl.gyp ('k') | components/nacl/renderer/nexe_load_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698