OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_SERIALIZED_VAR_H_ | 5 #ifndef PPAPI_PROXY_SERIALIZED_VAR_H_ |
6 #define PPAPI_PROXY_SERIALIZED_VAR_H_ | 6 #define PPAPI_PROXY_SERIALIZED_VAR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 class ReceiveSerializedException : public SerializedVar { | 221 class ReceiveSerializedException : public SerializedVar { |
222 public: | 222 public: |
223 ReceiveSerializedException(Dispatcher* dispatcher, PP_Var* exception); | 223 ReceiveSerializedException(Dispatcher* dispatcher, PP_Var* exception); |
224 ~ReceiveSerializedException(); | 224 ~ReceiveSerializedException(); |
225 | 225 |
226 // Returns true if the exception passed in the constructor is set. Check | 226 // Returns true if the exception passed in the constructor is set. Check |
227 // this before actually issuing the IPC. | 227 // this before actually issuing the IPC. |
228 bool IsThrown() const; | 228 bool IsThrown() const; |
229 | 229 |
230 private: | 230 private: |
| 231 Dispatcher* dispatcher_; |
| 232 |
231 // The input/output exception we're wrapping. May be NULL. | 233 // The input/output exception we're wrapping. May be NULL. |
232 PP_Var* exception_; | 234 PP_Var* exception_; |
233 | 235 |
234 DISALLOW_IMPLICIT_CONSTRUCTORS(ReceiveSerializedException); | 236 DISALLOW_IMPLICIT_CONSTRUCTORS(ReceiveSerializedException); |
235 }; | 237 }; |
236 | 238 |
237 // Helper class for when we're returning a vector of Vars. When it goes out | 239 // Helper class for when we're returning a vector of Vars. When it goes out |
238 // of scope it will automatically convert the vector filled by the IPC layer | 240 // of scope it will automatically convert the vector filled by the IPC layer |
239 // into the array specified by the constructor params. | 241 // into the array specified by the constructor params. |
240 // | 242 // |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 | 397 |
396 uint32_t count_; | 398 uint32_t count_; |
397 PP_Var* array_; | 399 PP_Var* array_; |
398 }; | 400 }; |
399 | 401 |
400 } // namespace proxy | 402 } // namespace proxy |
401 } // namespace pp | 403 } // namespace pp |
402 | 404 |
403 #endif // PPAPI_PROXY_SERIALIZED_VAR_H_ | 405 #endif // PPAPI_PROXY_SERIALIZED_VAR_H_ |
404 | 406 |
OLD | NEW |