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

Unified Diff: tests/fake_browser_ppapi/fake_object.h

Issue 3391010: Update the PPAPI DEPS revision. This change included parameter profile chang... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/service_runtime/env_cleanser.c ('k') | tests/fake_browser_ppapi/fake_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/fake_browser_ppapi/fake_object.h
===================================================================
--- tests/fake_browser_ppapi/fake_object.h (revision 3312)
+++ tests/fake_browser_ppapi/fake_object.h (working copy)
@@ -9,6 +9,7 @@
#include <map>
#include <string>
+#include "ppapi/c/pp_module.h"
#include "ppapi/c/pp_var.h"
#include "ppapi/c/ppp_class.h"
@@ -53,19 +54,26 @@
typedef std::map<std::string, Method> MethodMap;
// Create a PP_Var object with a set of initial properties.
- static PP_Var New(const PropertyMap& properties, const MethodMap& methods);
+ static PP_Var New(PP_Module module,
+ const PropertyMap& properties,
+ const MethodMap& methods);
// Construct using a map of initial properties.
- Object(const PropertyMap& properties, const MethodMap& methods);
+ Object(PP_Module module,
+ const PropertyMap& properties,
+ const MethodMap& methods);
PropertyMap* properties() { return &properties_; }
MethodMap* methods() { return &methods_; }
+ PP_Module module() const { return module_; }
private:
// Maintains the list of properties for Set/Get/Remove.
PropertyMap properties_;
// Maintains the list of methods that can be invoked by Call.
MethodMap methods_;
+ // Keep track of the PP_Module that created us.
+ PP_Module module_;
NACL_DISALLOW_COPY_AND_ASSIGN(Object);
};
« no previous file with comments | « src/trusted/service_runtime/env_cleanser.c ('k') | tests/fake_browser_ppapi/fake_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698