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

Unified Diff: remoting/host/plugin/host_plugin_utils.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 | « no previous file | remoting/host/plugin/host_plugin_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/plugin/host_plugin_utils.h
diff --git a/remoting/host/plugin/host_plugin_utils.h b/remoting/host/plugin/host_plugin_utils.h
index b1e4c73c91bab5a85607120c146235bd36ef4959..46f05f6c25062a29cc872ecafca35bd66e205f89 100644
--- a/remoting/host/plugin/host_plugin_utils.h
+++ b/remoting/host/plugin/host_plugin_utils.h
@@ -36,18 +36,18 @@ class ScopedRefNPObject {
public:
ScopedRefNPObject();
explicit ScopedRefNPObject(NPObject* object);
+ explicit ScopedRefNPObject(const ScopedRefNPObject& object);
~ScopedRefNPObject();
// Release the held reference and replace it with |object|, incrementing
// its reference count.
ScopedRefNPObject& operator=(NPObject* object);
+ ScopedRefNPObject& operator=(const ScopedRefNPObject& object);
- NPObject* get() { return object_; }
+ NPObject* get() const { return object_; }
private:
NPObject* object_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedRefNPObject);
};
} // namespace remoting
« no previous file with comments | « no previous file | remoting/host/plugin/host_plugin_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698