Fix passing pointers between processes.

BUG=31880
Review URL: http://codereview.chromium.org/558036

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37555 0039d316-1c4b-4281-b951-d872f2087c98
 static NPError GetURLNotify(NPP id,
                             const char* url,
                             const char* target,
                            bool notify,
                            void* notify_data) {
   if (!url)
     return NPERR_INVALID_URL;
 
   scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id);
  if (!plugin.get()) {
     NOTREACHED();
     return NPERR_GENERIC_ERROR;
   }

  plugin->RequestURL(url, "GET", target, NULL, 0, notify, notify_data);
   return NPERR_NO_ERROR;
 }

 static NPError GetURLNotify(NPP id,
                             const char* url,
                             const char* target,
                            bool notify,
                            void* notify_data) {
   if (!url)
     return NPERR_INVALID_URL;
 
  bool is_javascript_url = IsJavaScriptUrl(url);
   scoped_refptr<NPAPI::PluginInstance> plugin = FindInstance(id);
  if (plugin.get()) {
    plugin->webplugin()->HandleURLRequest(
        "GET", is_javascript_url, target, 0, 0, false,
        notify, url, reinterpret_cast<intptr_t>(notify_data),
        plugin->popups_allowed());
  } else {
     NOTREACHED();
     return NPERR_GENERIC_ERROR;
   }
   return NPERR_NO_ERROR;
 }
