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

Side by Side Diff: ppapi/host/host_message_context.h

Issue 10909138: Convert the async device ID getter to a chrome resource host (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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 unified diff | Download patch
« no previous file with comments | « content/renderer/pepper/renderer_ppapi_host_impl.cc ('k') | ppapi/host/host_message_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 11
12 namespace ppapi { 12 namespace ppapi {
13 namespace host { 13 namespace host {
14 14
15 // This context structure provides information about incoming resource message 15 // This context structure provides information about incoming resource message
16 // call requests when passed to resources. 16 // call requests when passed to resources.
17 struct PPAPI_HOST_EXPORT HostMessageContext { 17 struct PPAPI_HOST_EXPORT HostMessageContext {
18 explicit HostMessageContext( 18 explicit HostMessageContext(
19 const ppapi::proxy::ResourceMessageCallParams& cp); 19 const ppapi::proxy::ResourceMessageCallParams& cp);
20 ~HostMessageContext(); 20 ~HostMessageContext();
21 21
22 // Returns a "reply params" struct with the same resource and sequence number 22 // Returns a "reply params" struct with the same resource and sequence number
23 // as this request. 23 // as this request.
24 ppapi::proxy::ResourceMessageReplyParams MakeReplyParams(); 24 ppapi::proxy::ResourceMessageReplyParams MakeReplyParams() const;
25 25
26 // The original call parameters passed to the resource message call. 26 // The original call parameters passed to the resource message call.
27 const ppapi::proxy::ResourceMessageCallParams& params; 27 const ppapi::proxy::ResourceMessageCallParams& params;
28 28
29 // The reply message. If the params has the callback flag set, this message 29 // The reply message. If the params has the callback flag set, this message
30 // will be sent in reply. It is initialized to the empty message. If the 30 // will be sent in reply. It is initialized to the empty message. If the
31 // handler wants to send something else, it should just assign the message 31 // handler wants to send something else, it should just assign the message
32 // it wants to this value. 32 // it wants to this value.
33 IPC::Message reply_msg; 33 IPC::Message reply_msg;
34 }; 34 };
35 35
36 } // namespace host 36 } // namespace host
37 } // namespace ppapi 37 } // namespace ppapi
38 38
39 #endif // PPAPI_HOST_HOST_MESSAGE_CONTEXT_H_ 39 #endif // PPAPI_HOST_HOST_MESSAGE_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/renderer_ppapi_host_impl.cc ('k') | ppapi/host/host_message_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698