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

Unified Diff: plugin/npapi_host_control/win/host_control.h

Issue 151096: Made CHostControl use atomic reference counting because it is accessed from S... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: plugin/npapi_host_control/win/host_control.h
===================================================================
--- plugin/npapi_host_control/win/host_control.h (revision 19521)
+++ plugin/npapi_host_control/win/host_control.h (working copy)
@@ -59,8 +59,10 @@
class NPPluginProxy;
// Class implementing an ActiveX control for containing NPAPI plugin-objects.
+// This needs to be CComMultiThreadModel because these objects are concurrently
+// AddRefed and Released from StreamOperation threads.
class ATL_NO_VTABLE CHostControl
- : public CComObjectRootEx<CComSingleThreadModel>,
+ : public CComObjectRootEx<CComMultiThreadModel>,
public CComCoClass<CHostControl, &CLSID_HostControl>,
public CComControl<CHostControl>,
// IMPORTANT IMPLEMENTATION NOTE:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698