| Index: content/renderer/pepper/pepper_plugin_instance_impl.cc
|
| diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
|
| index 310ebe8ffe7328c525d7220832c8949da55b27f4..716bdad501979d87299d9cd3417c243614ed5e18 100644
|
| --- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
|
| +++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
|
| @@ -35,7 +35,6 @@
|
| #include "content/renderer/pepper/plugin_module.h"
|
| #include "content/renderer/pepper/plugin_object.h"
|
| #include "content/renderer/pepper/ppb_buffer_impl.h"
|
| -#include "content/renderer/pepper/ppb_file_ref_impl.h"
|
| #include "content/renderer/pepper/ppb_graphics_3d_impl.h"
|
| #include "content/renderer/pepper/ppb_image_data_impl.h"
|
| #include "content/renderer/pepper/ppp_pdf.h"
|
| @@ -770,6 +769,7 @@ bool PepperPluginInstanceImpl::HandleDocumentLoad(
|
| DCHECK(pending_host_id);
|
|
|
| DataFromWebURLResponse(
|
| + host_impl,
|
| pp_instance(),
|
| response,
|
| base::Bind(&PepperPluginInstanceImpl::DidDataFromWebURLResponse,
|
| @@ -2610,13 +2610,6 @@ base::FilePath PepperPluginInstanceImpl::GetModulePath() {
|
| return module_->path();
|
| }
|
|
|
| -PP_Resource PepperPluginInstanceImpl::CreateExternalFileReference(
|
| - const base::FilePath& external_file_path) {
|
| - PPB_FileRef_Impl* ref = PPB_FileRef_Impl::CreateExternal(
|
| - pp_instance(), external_file_path, "");
|
| - return ref->GetReference();
|
| -}
|
| -
|
| PP_Resource PepperPluginInstanceImpl::CreateImage(gfx::ImageSkia* source_image,
|
| float scale) {
|
| ui::ScaleFactor scale_factor = ui::GetScaleFactorFromScale(scale);
|
| @@ -2753,8 +2746,12 @@ int32_t PepperPluginInstanceImpl::Navigate(
|
| ::ppapi::URLRequestInfoData completed_request = request;
|
|
|
| WebURLRequest web_request;
|
| - if (!CreateWebURLRequest(&completed_request, frame, &web_request))
|
| + if (!CreateWebURLRequest(pp_instance_,
|
| + &completed_request,
|
| + frame,
|
| + &web_request)) {
|
| return PP_ERROR_FAILED;
|
| + }
|
| web_request.setFirstPartyForCookies(document.firstPartyForCookies());
|
| web_request.setHasUserGesture(from_user_action);
|
|
|
|
|