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

Unified Diff: ppapi/host/ppapi_host.cc

Issue 11510008: Refactor 4 PPB_Flash functions to the new PPAPI resource model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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 | « content/renderer/pepper/pepper_flash_renderer_host.cc ('k') | ppapi/host/resource_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/host/ppapi_host.cc
diff --git a/ppapi/host/ppapi_host.cc b/ppapi/host/ppapi_host.cc
index 6cc4db7c7e601a5422b87be67193ef6e01bf88fb..afb83967ebe48463e8056a4b09ad53ccd1915857 100644
--- a/ppapi/host/ppapi_host.cc
+++ b/ppapi/host/ppapi_host.cc
@@ -134,6 +134,7 @@ void PpapiHost::HandleResourceCall(
HostMessageContext* context) {
ResourceHost* resource_host = GetResourceHost(params.pp_resource());
if (resource_host) {
+ // CAUTION: Handling the message may cause the destruction of this object.
resource_host->HandleMessage(nested_msg, context);
} else {
if (context->params.has_callback()) {
« no previous file with comments | « content/renderer/pepper/pepper_flash_renderer_host.cc ('k') | ppapi/host/resource_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698