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

Unified Diff: ppapi/host/host_message_context.h

Issue 11359097: Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource model (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
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

Powered by Google App Engine
This is Rietveld 408576698