Index: ppapi/native_client/src/trusted/plugin/plugin.h |
diff --git a/ppapi/native_client/src/trusted/plugin/plugin.h b/ppapi/native_client/src/trusted/plugin/plugin.h |
index d2432c8182de6b745a3466218ff0f28a37f4f756..7906f793733540a7a6699bb7e85a78a949c308c2 100644 |
--- a/ppapi/native_client/src/trusted/plugin/plugin.h |
+++ b/ppapi/native_client/src/trusted/plugin/plugin.h |
@@ -117,8 +117,7 @@ class Plugin : public pp::Instance { |
ErrorInfo* error_info); |
// Returns the argument value for the specified key, or NULL if not found. |
- // The callee retains ownership of the result. |
- char* LookupArgument(const char* key); |
+ std::string LookupArgument(const std::string& key) const; |
enum LengthComputable { |
LENGTH_IS_NOT_COMPUTABLE = 0, |
@@ -381,9 +380,7 @@ class Plugin : public pp::Instance { |
void SetExitStatusOnMainThread(int32_t pp_error, int exit_status); |
- int argc_; |
- char** argn_; |
- char** argv_; |
+ std::map<std::string, std::string> args_; |
// Keep track of the NaCl module subprocess that was spun up in the plugin. |
NaClSubprocess main_subprocess_; |