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

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

Issue 10024025: Use ScopedRefNPObject to pass NPObjects in the host plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « remoting/host/plugin/host_plugin_utils.cc ('k') | 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 482c987e8aaf90d35c8433424d366f4db429e6fe..c7083febb46ba97db7f05f5c141c34886f0e08df 100644
--- a/remoting/host/plugin/host_script_object.h
+++ b/remoting/host/plugin/host_script_object.h
@@ -212,19 +212,19 @@ class HostNPScriptObject : public HostStatusObserver {
// Helper methods for Me2Me host.
// Helpers for GenerateKeyPair().
- void DoGenerateKeyPair(NPObject* callback);
- void InvokeGenerateKeyPairCallback(NPObject* callback,
+ void DoGenerateKeyPair(const ScopedRefNPObject& callback);
+ void InvokeGenerateKeyPairCallback(const ScopedRefNPObject& callback,
const std::string& private_key,
const std::string& public_key);
// Callback handler for SetConfigAndStart(), Stop() and SetPin() in
// DaemonController.
- void InvokeAsyncResultCallback(NPObject* callback,
+ void InvokeAsyncResultCallback(const ScopedRefNPObject& callback,
DaemonController::AsyncResult result);
// Callback handler for DaemonController::GetConfig().
- void InvokeGetDaemonConfigCallback(NPObject* callback,
+ void InvokeGetDaemonConfigCallback(const ScopedRefNPObject& callback,
scoped_ptr<base::DictionaryValue> config);
//////////////////////////////////////////////////////////
« no previous file with comments | « remoting/host/plugin/host_plugin_utils.cc ('k') | remoting/host/plugin/host_script_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698