OLD | NEW |
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_PROXY_RESOURCE_MESSAGE_PARAMS_H_ | 5 #ifndef PPAPI_PROXY_RESOURCE_MESSAGE_PARAMS_H_ |
6 #define PPAPI_PROXY_RESOURCE_MESSAGE_PARAMS_H_ | 6 #define PPAPI_PROXY_RESOURCE_MESSAGE_PARAMS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "ipc/ipc_message_utils.h" | 11 #include "ipc/ipc_message_utils.h" |
12 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
13 #include "ppapi/proxy/ppapi_proxy_export.h" | 13 #include "ppapi/proxy/ppapi_proxy_export.h" |
14 #include "ppapi/proxy/serialized_structs.h" | 14 #include "ppapi/proxy/serialized_handle.h" |
15 | 15 |
16 namespace ppapi { | 16 namespace ppapi { |
17 namespace proxy { | 17 namespace proxy { |
18 | 18 |
19 // Common parameters for resource call and reply params structures below. | 19 // Common parameters for resource call and reply params structures below. |
20 class PPAPI_PROXY_EXPORT ResourceMessageParams { | 20 class PPAPI_PROXY_EXPORT ResourceMessageParams { |
21 public: | 21 public: |
22 virtual ~ResourceMessageParams(); | 22 virtual ~ResourceMessageParams(); |
23 | 23 |
24 PP_Resource pp_resource() const { return pp_resource_; } | 24 PP_Resource pp_resource() const { return pp_resource_; } |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 static bool Read(const Message* m, PickleIterator* iter, param_type* r) { | 202 static bool Read(const Message* m, PickleIterator* iter, param_type* r) { |
203 return r->Deserialize(m, iter); | 203 return r->Deserialize(m, iter); |
204 } | 204 } |
205 static void Log(const param_type& p, std::string* l) { | 205 static void Log(const param_type& p, std::string* l) { |
206 } | 206 } |
207 }; | 207 }; |
208 | 208 |
209 } // namespace IPC | 209 } // namespace IPC |
210 | 210 |
211 #endif // PPAPI_PROXY_RESOURCE_MESSAGE_PARAMS_H_ | 211 #endif // PPAPI_PROXY_RESOURCE_MESSAGE_PARAMS_H_ |
OLD | NEW |