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

Issue 23444004: Add GetPluginRefererURL to PPB_URLUtil_Dev interface to get the 'Referer' HTTP header value that wa… (Closed)

Created:
7 years, 3 months ago by omakovski
Modified:
5 years, 6 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, raymes+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Add GetPluginRefererURL to PPB_URLUtil_Dev interface to get the 'Referer' HTTP header value that was sent by request that loaded plug-in. Sometimes Pepper plug-in needs to create additional HTTP request to its source URL (for example, PDF plug-in downloads parts of the file using HTTP Range requests). These requests will fail for servers that check Referer header (example: http://fs51.www.ex.ua/get/96354baf7547114fa116c56ecdbdb3ee/66511913/FRoziner_Iskusstvo_Ciurlionisa_1993.pdf). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221920

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -7 lines) Patch
M content/renderer/pepper/pepper_plugin_instance_impl.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 4 5 2 chunks +19 lines, -0 lines 0 comments Download
M ppapi/api/dev/ppb_url_util_dev.idl View 1 2 3 4 5 2 chunks +16 lines, -1 line 0 comments Download
M ppapi/c/dev/ppb_url_util_dev.h View 1 2 3 4 5 4 chunks +37 lines, -4 lines 0 comments Download
M ppapi/cpp/dev/url_util_dev.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/cpp/dev/url_util_dev.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 5 chunks +69 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 5 3 chunks +25 lines, -0 lines 0 comments Download
M ppapi/tests/test_url_util.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/tests/test_url_util.cc View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_dev.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_url_util_thunk.cc View 1 2 3 4 5 2 chunks +26 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
omakovski
7 years, 3 months ago (2013-08-27 16:50:25 UTC) #1
bbudge
https://codereview.chromium.org/23444004/diff/1/ppapi/api/dev/ppb_url_util_dev.idl File ppapi/api/dev/ppb_url_util_dev.idl (right): https://codereview.chromium.org/23444004/diff/1/ppapi/api/dev/ppb_url_util_dev.idl#newcode11 ppapi/api/dev/ppb_url_util_dev.idl:11: M17 = 0.6 You should version the interface (create ...
7 years, 3 months ago (2013-08-27 18:16:07 UTC) #2
omakovski
Fixed.
7 years, 3 months ago (2013-08-27 19:33:26 UTC) #3
bbudge
https://codereview.chromium.org/23444004/diff/14001/ppapi/api/dev/ppb_url_util_dev.idl File ppapi/api/dev/ppb_url_util_dev.idl (right): https://codereview.chromium.org/23444004/diff/14001/ppapi/api/dev/ppb_url_util_dev.idl#newcode12 ppapi/api/dev/ppb_url_util_dev.idl:12: M30 = 0.7 Don't forget to re-run the generator.
7 years, 3 months ago (2013-08-27 22:36:30 UTC) #4
piman
https://codereview.chromium.org/23444004/diff/14001/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/23444004/diff/14001/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode2508 content/renderer/pepper/pepper_plugin_instance_impl.cc:2508: const WebURLRequest& request = frame->dataSource()->originalRequest(); Mmh, this is the ...
7 years, 3 months ago (2013-08-27 22:48:21 UTC) #5
yzshen1
https://codereview.chromium.org/23444004/diff/14001/ppapi/api/dev/ppb_url_util_dev.idl File ppapi/api/dev/ppb_url_util_dev.idl (right): https://codereview.chromium.org/23444004/diff/14001/ppapi/api/dev/ppb_url_util_dev.idl#newcode12 ppapi/api/dev/ppb_url_util_dev.idl:12: M30 = 0.7 Now the earliest milestone is M31. ...
7 years, 3 months ago (2013-08-28 17:44:29 UTC) #6
omakovski
Thank you all for pointing out problems in my patch. I hope I have done ...
7 years, 3 months ago (2013-08-28 19:29:22 UTC) #7
piman
LGTM for content/
7 years, 3 months ago (2013-08-28 19:47:27 UTC) #8
bbudge
https://codereview.chromium.org/23444004/diff/51001/ppapi/api/dev/ppb_url_util_dev.idl File ppapi/api/dev/ppb_url_util_dev.idl (right): https://codereview.chromium.org/23444004/diff/51001/ppapi/api/dev/ppb_url_util_dev.idl#newcode9 ppapi/api/dev/ppb_url_util_dev.idl:9: If you put this here: [generate_thunk] Can the thunk ...
7 years, 3 months ago (2013-08-28 20:35:35 UTC) #9
omakovski
On 2013/08/28 20:35:35, bbudge1 wrote: > https://codereview.chromium.org/23444004/diff/51001/ppapi/api/dev/ppb_url_util_dev.idl > File ppapi/api/dev/ppb_url_util_dev.idl (right): > > https://codereview.chromium.org/23444004/diff/51001/ppapi/api/dev/ppb_url_util_dev.idl#newcode9 > ...
7 years, 3 months ago (2013-08-29 10:28:31 UTC) #10
bbudge
LGTM You will need a security review for ppapi_messages.h Probably from one of tsepez, palmer, ...
7 years, 3 months ago (2013-08-29 13:15:19 UTC) #11
Tom Sepez
https://codereview.chromium.org/23444004/diff/66001/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/23444004/diff/66001/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode2507 content/renderer/pepper/pepper_plugin_instance_impl.cc:2507: return ppapi::PPB_URLUtil_Shared::GenerateURLReturn(document.url(), Does this leak info that would have ...
7 years, 3 months ago (2013-08-29 20:07:56 UTC) #12
omakovski
On 2013/08/29 20:07:56, Tom Sepez wrote: > https://codereview.chromium.org/23444004/diff/66001/content/renderer/pepper/pepper_plugin_instance_impl.cc > File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): > > https://codereview.chromium.org/23444004/diff/66001/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode2507 ...
7 years, 3 months ago (2013-08-29 21:22:09 UTC) #13
Tom Sepez
lgtm
7 years, 3 months ago (2013-08-29 21:26:10 UTC) #14
omakovski
yzshen1, brettw, binji, please let me know if there are any more issues with this ...
7 years, 3 months ago (2013-09-02 16:26:50 UTC) #15
yzshen1
LGTM
7 years, 3 months ago (2013-09-03 16:50:41 UTC) #16
bbudge
https://codereview.chromium.org/23444004/diff/66001/content/renderer/pepper/pepper_plugin_instance_impl.cc File content/renderer/pepper/pepper_plugin_instance_impl.cc (right): https://codereview.chromium.org/23444004/diff/66001/content/renderer/pepper/pepper_plugin_instance_impl.cc#newcode2507 content/renderer/pepper/pepper_plugin_instance_impl.cc:2507: return ppapi::PPB_URLUtil_Shared::GenerateURLReturn(document.url(), On 2013/08/29 20:07:56, Tom Sepez wrote: > ...
7 years, 3 months ago (2013-09-06 20:35:44 UTC) #17
noelallen1
IDL lgtm
7 years, 3 months ago (2013-09-06 22:51:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/omakovski@yandex-team.ru/23444004/66001
7 years, 3 months ago (2013-09-06 23:48:52 UTC) #19
commit-bot: I haz the power
Failed to apply patch for ppapi/c/pp_macros.h: While running patch -p0 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-06 23:48:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/omakovski@yandex-team.ru/23444004/84001
7 years, 3 months ago (2013-09-07 09:16:17 UTC) #21
commit-bot: I haz the power
7 years, 3 months ago (2013-09-07 15:47:51 UTC) #22
Message was sent while issue was closed.
Change committed as 221920

Powered by Google App Engine
This is Rietveld 408576698