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

Unified Diff: ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc

Issue 316653002: Pepper: Remove Plugin::EnqueueProgressEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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 | « ppapi/native_client/src/trusted/plugin/plugin.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc
diff --git a/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc b/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc
index 92740d9e2b1d34e719717df9e9925b95016270c8..4ccfd9b5e132db42f32d92a7a765f69253abcbd4 100644
--- a/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc
+++ b/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc
@@ -256,11 +256,12 @@ void PnaclCoordinator::TranslateFinished(int32_t pp_error) {
// that were delayed (see the delay inserted in BitcodeGotCompiled).
if (ExpectedProgressKnown()) {
pexe_bytes_compiled_ = expected_pexe_size_;
- plugin_->EnqueueProgressEvent(PP_NACL_EVENT_PROGRESS,
- pexe_url_,
- plugin::Plugin::LENGTH_IS_COMPUTABLE,
- pexe_bytes_compiled_,
- expected_pexe_size_);
+ GetNaClInterface()->DispatchEvent(plugin_->pp_instance(),
+ PP_NACL_EVENT_PROGRESS,
+ pexe_url_.c_str(),
+ PP_TRUE,
+ pexe_bytes_compiled_,
+ expected_pexe_size_);
}
// If there are no errors, report stats from this thread (the main thread).
@@ -549,18 +550,20 @@ void PnaclCoordinator::BitcodeGotCompiled(int32_t pp_error,
// that bytes were sent to the compiler.
if (ExpectedProgressKnown()) {
if (!ShouldDelayProgressEvent()) {
- plugin_->EnqueueProgressEvent(PP_NACL_EVENT_PROGRESS,
- pexe_url_,
- plugin::Plugin::LENGTH_IS_COMPUTABLE,
- pexe_bytes_compiled_,
- expected_pexe_size_);
+ GetNaClInterface()->DispatchEvent(plugin_->pp_instance(),
+ PP_NACL_EVENT_PROGRESS,
+ pexe_url_.c_str(),
+ PP_TRUE,
+ pexe_bytes_compiled_,
+ expected_pexe_size_);
}
} else {
- plugin_->EnqueueProgressEvent(PP_NACL_EVENT_PROGRESS,
- pexe_url_,
- plugin::Plugin::LENGTH_IS_NOT_COMPUTABLE,
- pexe_bytes_compiled_,
- expected_pexe_size_);
+ GetNaClInterface()->DispatchEvent(plugin_->pp_instance(),
+ PP_NACL_EVENT_PROGRESS,
+ pexe_url_.c_str(),
+ PP_FALSE,
+ pexe_bytes_compiled_,
+ expected_pexe_size_);
}
}
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/plugin.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698