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

Unified Diff: remoting/host/plugin/host_script_object.h

Issue 7265012: Fix buglet calling out to JS from plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 | « no previous file | remoting/host/plugin/host_script_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/plugin/host_script_object.h
diff --git a/remoting/host/plugin/host_script_object.h b/remoting/host/plugin/host_script_object.h
index 47e4fb4e1e04753f31bbe690facd2a681009085e..4ffeac3d7feb0d83d7aa7f88c3bf9aa1d6f9a2d2 100644
--- a/remoting/host/plugin/host_script_object.h
+++ b/remoting/host/plugin/host_script_object.h
@@ -106,13 +106,11 @@ class HostNPScriptObject : public HostStatusObserver {
// Callback for ChromotingHost::Shutdown().
void OnShutdownFinished();
- // Call a JavaScript function wrapped as an NPObject.
- // If result is non-null, the result of the call will be stored in it.
- // Caller is responsible for releasing result if they ask for it.
- static bool CallJSFunction(NPObject* func,
+ // Helper function for executing InvokeDefault on an NPObject, and ignoring
+ // the return value.
+ bool InvokeAndIgnoreResult(NPObject* func,
const NPVariant* args,
- uint32_t argCount,
- NPVariant* result);
+ uint32_t argCount);
// Posts a task on the main NP thread.
void PostTaskToNPThread(const tracked_objects::Location& from_here,
« no previous file with comments | « no previous file | remoting/host/plugin/host_script_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698