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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_HOST_HOST_MESSAGE_CONTEXT_H_ 5 #ifndef PPAPI_HOST_HOST_MESSAGE_CONTEXT_H_
6 #define PPAPI_HOST_HOST_MESSAGE_CONTEXT_H_ 6 #define PPAPI_HOST_HOST_MESSAGE_CONTEXT_H_
7 7
8 #include "ipc/ipc_message.h" 8 #include "ipc/ipc_message.h"
9 #include "ppapi/host/ppapi_host_export.h" 9 #include "ppapi/host/ppapi_host_export.h"
10 #include "ppapi/proxy/resource_message_params.h" 10 #include "ppapi/proxy/resource_message_params.h"
(...skipping 27 matching lines...) Expand all
38 explicit HostMessageContext( 38 explicit HostMessageContext(
39 const ppapi::proxy::ResourceMessageCallParams& cp); 39 const ppapi::proxy::ResourceMessageCallParams& cp);
40 HostMessageContext( 40 HostMessageContext(
41 const ppapi::proxy::ResourceMessageCallParams& cp, 41 const ppapi::proxy::ResourceMessageCallParams& cp,
42 IPC::Message* sync_reply_msg); 42 IPC::Message* sync_reply_msg);
43 ~HostMessageContext(); 43 ~HostMessageContext();
44 44
45 // Returns a reply message context struct which includes the reply params. 45 // Returns a reply message context struct which includes the reply params.
46 ReplyMessageContext MakeReplyMessageContext() const; 46 ReplyMessageContext MakeReplyMessageContext() const;
47 47
48 // The original call parameters passed to the resource message call. 48 // The original call parameters passed to the resource message call. This
49 const ppapi::proxy::ResourceMessageCallParams& params; 49 // cannot be a reference because this object may be passed to another thread.
50 ppapi::proxy::ResourceMessageCallParams params;
50 51
51 // The reply message. If the params has the callback flag set, this message 52 // The reply message. If the params has the callback flag set, this message
52 // will be sent in reply. It is initialized to the empty message. If the 53 // will be sent in reply. It is initialized to the empty message. If the
53 // handler wants to send something else, it should just assign the message 54 // handler wants to send something else, it should just assign the message
54 // it wants to this value. 55 // it wants to this value.
55 IPC::Message reply_msg; 56 IPC::Message reply_msg;
56 57
57 // If this context is generated from a sync message, this will be set to the 58 // If this context is generated from a sync message, this will be set to the
58 // incoming sync message. Otherwise, it will be NULL. 59 // incoming sync message. Otherwise, it will be NULL.
59 IPC::Message* sync_reply_msg; 60 IPC::Message* sync_reply_msg;
60 }; 61 };
61 62
62 } // namespace host 63 } // namespace host
63 } // namespace ppapi 64 } // namespace ppapi
64 65
65 #endif // PPAPI_HOST_HOST_MESSAGE_CONTEXT_H_ 66 #endif // PPAPI_HOST_HOST_MESSAGE_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698