Index: webkit/plugins/ppapi/npapi_glue.h |
diff --git a/webkit/plugins/ppapi/npapi_glue.h b/webkit/plugins/ppapi/npapi_glue.h |
index c59de0abd96e4b8884bb18db8f5599818438f7f4..f732402d269082769df7a3813111b6ce5cdd31c2 100644 |
--- a/webkit/plugins/ppapi/npapi_glue.h |
+++ b/webkit/plugins/ppapi/npapi_glue.h |
@@ -47,9 +47,8 @@ WEBKIT_PLUGINS_EXPORT PP_Var NPVariantToPPVar(PluginInstance* instance, |
NPIdentifier PPVarToNPIdentifier(PP_Var var); |
// Returns a PP_Var corresponding to the given identifier. In the case of |
-// a string identifier, the string will be allocated associated with the |
-// given module. A returned string will have a reference count of 1. |
-PP_Var NPIdentifierToPPVar(PP_Module module, NPIdentifier id); |
+// a string identifier, the returned string will have a reference count of 1. |
+PP_Var NPIdentifierToPPVar(NPIdentifier id); |
// Helper function to create a PP_Var of type object that contains the given |
// NPObject for use byt he given module. Calling this function multiple times |
@@ -57,7 +56,7 @@ PP_Var NPIdentifierToPPVar(PP_Module module, NPIdentifier id); |
// there is still a PP_Var with a reference open to it from the previous |
// call. |
// |
-// The module is necessary because we can have different modules pointing to |
+// The instance is necessary because we can have different instances pointing to |
// the same NPObject, and we want to keep their refs separate. |
// |
// If no ObjectVar currently exists corresponding to the NPObject, one is |
@@ -231,42 +230,20 @@ class TryCatch { |
// The given exception may be NULL if the consumer isn't interested in |
// catching exceptions. If non-NULL, the given var will be updated if any |
// exception is thrown (so it must outlive the TryCatch object). |
- // |
- // The module associated with the exception is passed so we know which module |
- // to associate any exception string with. It may be NULL if you don't know |
- // the module at construction time, in which case you should set it later |
- // by calling set_module(). |
- // |
- // If an exception is thrown when the module is NULL, setting *any* exception |
- // will result in using the InvalidObjectException. |
- TryCatch(PP_Module module, PP_Var* exception); |
+ TryCatch(PP_Var* exception); |
~TryCatch(); |
- // Get and set the module. This may be NULL (see the constructor). |
- PP_Module pp_module() { return pp_module_; } |
- void set_pp_module(PP_Module module) { pp_module_ = module; } |
- |
// Returns true is an exception has been thrown. This can be true immediately |
// after construction if the var passed to the constructor is non-void. |
bool has_exception() const { return has_exception_; } |
- // Sets the given exception. If no module has been set yet, the message will |
- // be ignored (since we have no module to associate the string with) and the |
- // SetInvalidObjectException() will be used instead. |
- // |
- // If an exception has been previously set, this function will do nothing |
- // (normally you want only the first exception). |
+ // Sets the given exception. If an exception has been previously set, this |
+ // function will do nothing (normally you want only the first exception). |
void SetException(const char* message); |
- // Sets the exception to be a generic message contained in a magic string |
- // not associated with any module. |
- void SetInvalidObjectException(); |
- |
private: |
static void Catch(void* self, const char* message); |
- PP_Module pp_module_; |
- |
// True if an exception has been thrown. Since the exception itself may be |
// NULL if the plugin isn't interested in getting the exception, this will |
// always indicate if SetException has been called, regardless of whether |