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

Unified Diff: ppapi/host/host_message_context.h

Issue 11410029: Added a ResourceMessageFilter for handling resource messages on another thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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 | « chrome/renderer/pepper/pepper_flash_menu_host.cc ('k') | ppapi/host/ppapi_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/host/host_message_context.h
diff --git a/ppapi/host/host_message_context.h b/ppapi/host/host_message_context.h
index c9b3b3cf5a5b63c6fd41e55a30e7b64731666ea5..5a5486ec43738b6ec6758a0b0cbda510b0bba175 100644
--- a/ppapi/host/host_message_context.h
+++ b/ppapi/host/host_message_context.h
@@ -45,8 +45,9 @@ struct PPAPI_HOST_EXPORT HostMessageContext {
// Returns a reply message context struct which includes the reply params.
ReplyMessageContext MakeReplyMessageContext() const;
- // The original call parameters passed to the resource message call.
- const ppapi::proxy::ResourceMessageCallParams& params;
+ // The original call parameters passed to the resource message call. This
+ // cannot be a reference because this object may be passed to another thread.
+ ppapi::proxy::ResourceMessageCallParams params;
// The reply message. If the params has the callback flag set, this message
// will be sent in reply. It is initialized to the empty message. If the
« no previous file with comments | « chrome/renderer/pepper/pepper_flash_menu_host.cc ('k') | ppapi/host/ppapi_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698