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

Side by Side Diff: ppapi/proxy/serialized_var.h

Issue 6282007: First pass at making the proxy handle multiple renderers. This associates the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppp_instance_proxy.cc ('k') | ppapi/proxy/serialized_var.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) 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
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
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
OLDNEW
« no previous file with comments | « ppapi/proxy/ppp_instance_proxy.cc ('k') | ppapi/proxy/serialized_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698