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

Unified Diff: ppapi/cpp/module.h

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH TITLE Created 8 years, 10 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 | « ppapi/cpp/instance_handle.cc ('k') | ppapi/cpp/module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/module.h
diff --git a/ppapi/cpp/module.h b/ppapi/cpp/module.h
index a9af8e0d024b61e0b452914eb3074ab121f602e7..871128c79b93f0e05aa28740529c22b4ec2e0a20 100644
--- a/ppapi/cpp/module.h
+++ b/ppapi/cpp/module.h
@@ -86,7 +86,10 @@ class Module {
const void* GetBrowserInterface(const char* interface_name);
/// InstanceForPPInstance() returns the object associated with this
- /// <code>PP_Instance</code>, or NULL if one is not found.
+ /// <code>PP_Instance</code>, or NULL if one is not found. This should only
+ /// be called from the main thread! This instance object may be destroyed at
+ /// any time on the main thread, so using it on other threads may cause a
+ /// crash.
///
/// @param[in] instance This <code>PP_Instance</code>.
///
« no previous file with comments | « ppapi/cpp/instance_handle.cc ('k') | ppapi/cpp/module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698