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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/service_runtime.cc

Issue 513273003: Drop NaCl support for posting stdout/stderr to JS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Back out documentation changes. Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #define NACL_LOG_MODULE_NAME "Plugin_ServiceRuntime" 7 #define NACL_LOG_MODULE_NAME "Plugin_ServiceRuntime"
8 8
9 #include "ppapi/native_client/src/trusted/plugin/service_runtime.h" 9 #include "ppapi/native_client/src/trusted/plugin/service_runtime.h"
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 void PluginReverseInterface::ShutDown() { 78 void PluginReverseInterface::ShutDown() {
79 NaClLog(4, "PluginReverseInterface::Shutdown: entered\n"); 79 NaClLog(4, "PluginReverseInterface::Shutdown: entered\n");
80 nacl::MutexLocker take(&mu_); 80 nacl::MutexLocker take(&mu_);
81 shutting_down_ = true; 81 shutting_down_ = true;
82 NaClXCondVarBroadcast(&cv_); 82 NaClXCondVarBroadcast(&cv_);
83 NaClLog(4, "PluginReverseInterface::Shutdown: broadcasted, exiting\n"); 83 NaClLog(4, "PluginReverseInterface::Shutdown: broadcasted, exiting\n");
84 } 84 }
85 85
86 void PluginReverseInterface::DoPostMessage(nacl::string message) { 86 void PluginReverseInterface::DoPostMessage(nacl::string message) {
87 std::string full_message = std::string("DEBUG_POSTMESSAGE:") + message; 87 // This feature is no longer used.
88 GetNaClInterface()->PostMessageToJavaScript(pp_instance_, 88 // TODO(teravest): Remove this once this is gone from nacl::ReverseInterface.
89 full_message.c_str());
90 } 89 }
91 90
92 void PluginReverseInterface::StartupInitializationComplete() { 91 void PluginReverseInterface::StartupInitializationComplete() {
93 NaClLog(4, "PluginReverseInterface::StartupInitializationComplete\n"); 92 NaClLog(4, "PluginReverseInterface::StartupInitializationComplete\n");
94 if (init_done_cb_.pp_completion_callback().func != NULL) { 93 if (init_done_cb_.pp_completion_callback().func != NULL) {
95 NaClLog(4, 94 NaClLog(4,
96 "PluginReverseInterface::StartupInitializationComplete:" 95 "PluginReverseInterface::StartupInitializationComplete:"
97 " invoking CB\n"); 96 " invoking CB\n");
98 pp::Module::Get()->core()->CallOnMainThread(0, init_done_cb_, PP_OK); 97 pp::Module::Get()->core()->CallOnMainThread(0, init_done_cb_, PP_OK);
99 } else { 98 } else {
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 reverse_service_->Unref(); 576 reverse_service_->Unref();
578 577
579 rev_interface_->Unref(); 578 rev_interface_->Unref();
580 579
581 anchor_->Unref(); 580 anchor_->Unref();
582 NaClCondVarDtor(&cond_); 581 NaClCondVarDtor(&cond_);
583 NaClMutexDtor(&mu_); 582 NaClMutexDtor(&mu_);
584 } 583 }
585 584
586 } // namespace plugin 585 } // namespace plugin
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_nacl_private.h ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698