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

Issue 477263003: pdf: Create a separate component for using the pdf pepper plugin. (Closed)

Created:
6 years, 4 months ago by sadrul
Modified:
5 years, 7 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, raymes+watch_chromium.org, teravest+watch_chromium.org, darin-cc_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, ihf+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Committed: https://crrev.com/2f8807f697e2c043c857ec37c43d45573d239d8f Cr-Commit-Position: refs/heads/master@{#292313}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 1

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Total comments: 2

Patch Set 10 : . #

Total comments: 24

Patch Set 11 : . #

Patch Set 12 : tot-merge #

Patch Set 13 : . #

Patch Set 14 : fix-gn #

Total comments: 13

Patch Set 15 : . #

Patch Set 16 : tot-merge #

Patch Set 17 : . #

Total comments: 4

Patch Set 18 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+779 lines, -914 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/pdf_password_dialog.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +5 lines, -6 lines 0 comments Download
A chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +62 lines, -0 lines 0 comments Download
D chrome/browser/ui/pdf/open_pdf_in_reader_prompt_delegate.h View 1 2 3 4 5 1 chunk +0 lines, -32 lines 0 comments Download
D chrome/browser/ui/pdf/pdf_tab_helper.h View 1 2 3 4 5 1 chunk +0 lines, -73 lines 0 comments Download
M chrome/browser/ui/pdf/pdf_tab_helper.cc View 1 2 3 4 5 1 chunk +0 lines, -108 lines 0 comments Download
M chrome/browser/ui/pdf/pdf_unsupported_feature.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 12 chunks +44 lines, -46 lines 0 comments Download
M chrome/browser/ui/tab_helpers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/open_pdf_in_reader_bubble_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/open_pdf_in_reader_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/pdf_password_dialog.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +6 lines, -8 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +11 lines, -3 lines 0 comments Download
M chrome/common/render_messages.h View 1 chunk +0 lines, -17 lines 0 comments Download
M chrome/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -1 line 0 comments Download
M chrome/renderer/DEPS View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +10 lines, -2 lines 0 comments Download
A chrome/renderer/pepper/chrome_pdf_print_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/renderer/pepper/chrome_pdf_print_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +52 lines, -0 lines 0 comments Download
M chrome/renderer/pepper/pepper_flash_renderer_host.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/pepper/pepper_pdf_host.cc View 1 2 3 4 5 6 4 chunks +7 lines, -8 lines 0 comments Download
D chrome/renderer/pepper/ppb_pdf_impl.h View 1 chunk +0 lines, -23 lines 0 comments Download
D chrome/renderer/pepper/ppb_pdf_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -464 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +13 lines, -0 lines 0 comments Download
M components/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
A components/pdf.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +60 lines, -0 lines 0 comments Download
A components/pdf/DEPS View 1 chunk +10 lines, -0 lines 0 comments Download
A + components/pdf/OWNERS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
A components/pdf/README View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
A components/pdf/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +19 lines, -0 lines 0 comments Download
A + components/pdf/browser/open_pdf_in_reader_prompt_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +9 lines, -5 lines 0 comments Download
A + components/pdf/browser/pdf_web_contents_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +26 lines, -25 lines 0 comments Download
A components/pdf/browser/pdf_web_contents_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +107 lines, -0 lines 0 comments Download
A components/pdf/browser/pdf_web_contents_helper_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +43 lines, -0 lines 0 comments Download
A + components/pdf/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -3 lines 0 comments Download
A + components/pdf/common/OWNERS View 1 2 3 4 5 6 7 8 9 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/pdf/common/pdf_message_generator.h View 10 11 1 chunk +2 lines, -3 lines 0 comments Download
A + components/pdf/common/pdf_message_generator.cc View 1 chunk +6 lines, -7 lines 0 comments Download
A components/pdf/common/pdf_messages.h View 1 chunk +31 lines, -0 lines 0 comments Download
A components/pdf/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +28 lines, -0 lines 0 comments Download
A components/pdf/renderer/OWNERS View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
A components/pdf/renderer/ppb_pdf_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +45 lines, -0 lines 0 comments Download
A + components/pdf/renderer/ppb_pdf_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 11 chunks +37 lines, -55 lines 2 comments Download
M ipc/ipc_message_start.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/c/private/ppb_pdf.h View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M tools/ipc_fuzzer/message_lib/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M tools/ipc_fuzzer/message_lib/all_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
sadrul
Hi! I wasn't sure from the doc (https://docs.google.com/a/chromium.org/document/d/1ipfOd4Cj0mgFzPCmdFQYvwV4Q_iV4UWiU50sppgaofY/edit#) if I explained the plan clearly enough, ...
6 years, 4 months ago (2014-08-21 20:06:20 UTC) #1
raymes
The idea makes sense to me but I'm not familiar with components. One thing to ...
6 years, 4 months ago (2014-08-22 00:29:20 UTC) #2
jam
it seems hacky that a component sends IPCs and the embedder dispatches them. IPC shouldn't ...
6 years, 4 months ago (2014-08-22 00:44:59 UTC) #3
sadrul
On 2014/08/22 00:44:59, jam wrote: > it seems hacky that a component sends IPCs and ...
6 years, 4 months ago (2014-08-22 18:03:39 UTC) #4
raymes
> It doesn't look like out-of-process will be an issue. Is there some doc > ...
6 years, 4 months ago (2014-08-25 00:13:30 UTC) #5
jam
I'll defer to Lei and Raymes for the review other than the one thing about ...
6 years, 4 months ago (2014-08-25 01:52:07 UTC) #6
raymes
I'm not sure about moving ppb_pdf_impl.cc and pepper_pdf_host.cc into the component. I don't think we've ...
6 years, 4 months ago (2014-08-25 03:11:49 UTC) #7
dmichael (off chromium)
On 2014/08/25 03:11:49, raymes wrote: > I'm not sure about moving ppb_pdf_impl.cc and pepper_pdf_host.cc into ...
6 years, 4 months ago (2014-08-25 17:13:45 UTC) #8
sadrul
On 2014/08/25 01:52:07, jam wrote: ... > > > components/pdf/renderer/ppb_pdf_impl.cc:13: #include > > > "content/app/strings/grit/content_strings.h" ...
6 years, 3 months ago (2014-08-26 17:09:54 UTC) #9
sadrul
On 2014/08/25 01:52:07, jam wrote: ... > > > > The PepperPDFHost still lives in ...
6 years, 3 months ago (2014-08-26 19:41:16 UTC) #10
sadrul
On 2014/08/26 17:09:54, sadrul wrote: > On 2014/08/25 01:52:07, jam wrote: > ... > > ...
6 years, 3 months ago (2014-08-26 21:49:17 UTC) #11
Lei Zhang
https://codereview.chromium.org/477263003/diff/170001/chrome/chrome_renderer.gypi File chrome/chrome_renderer.gypi (right): https://codereview.chromium.org/477263003/diff/170001/chrome/chrome_renderer.gypi#newcode262 chrome/chrome_renderer.gypi:262: 'chrome_renderer_full_printing_sources': [ You need to update the corresponding BUILD.gn ...
6 years, 3 months ago (2014-08-26 22:41:31 UTC) #12
sadrul
https://codereview.chromium.org/477263003/diff/170001/chrome/chrome_renderer.gypi File chrome/chrome_renderer.gypi (right): https://codereview.chromium.org/477263003/diff/170001/chrome/chrome_renderer.gypi#newcode262 chrome/chrome_renderer.gypi:262: 'chrome_renderer_full_printing_sources': [ On 2014/08/26 22:41:30, Lei Zhang wrote: > ...
6 years, 3 months ago (2014-08-27 00:09:53 UTC) #13
Lei Zhang
lgtm You'll need a security reviewer for the IPC message move and probably a components/ ...
6 years, 3 months ago (2014-08-27 00:30:44 UTC) #14
sadrul
sadrul@chromium.org changed reviewers: + blundell@chromium.org, tsepez@chromium.org
6 years, 3 months ago (2014-08-27 00:43:00 UTC) #15
sadrul
tsepez@chromium.org: Please review changes to move the IPC messages from chrome/common/render_messages.h to components/pdf/common/pdf_messages.h blundell@chromium.org: Please ...
6 years, 3 months ago (2014-08-27 00:43:00 UTC) #16
raymes
lgtm https://codereview.chromium.org/477263003/diff/250001/chrome/renderer/pepper/chrome_pdf_print_delegate.cc File chrome/renderer/pepper/chrome_pdf_print_delegate.cc (right): https://codereview.chromium.org/477263003/diff/250001/chrome/renderer/pepper/chrome_pdf_print_delegate.cc#newcode41 chrome/renderer/pepper/chrome_pdf_print_delegate.cc:41: printing::PrintWebViewHelper* helper = GetPrintWebViewHelper(element); nit: looks like the ...
6 years, 3 months ago (2014-08-27 03:34:10 UTC) #17
blundell
component structure looks good https://codereview.chromium.org/477263003/diff/250001/components/pdf.gypi File components/pdf.gypi (right): https://codereview.chromium.org/477263003/diff/250001/components/pdf.gypi#newcode10 components/pdf.gypi:10: 'target_name': 'pdf_pepper_common', nit: These targets ...
6 years, 3 months ago (2014-08-27 09:12:33 UTC) #18
sadrul
https://codereview.chromium.org/477263003/diff/250001/chrome/renderer/pepper/chrome_pdf_print_delegate.cc File chrome/renderer/pepper/chrome_pdf_print_delegate.cc (right): https://codereview.chromium.org/477263003/diff/250001/chrome/renderer/pepper/chrome_pdf_print_delegate.cc#newcode41 chrome/renderer/pepper/chrome_pdf_print_delegate.cc:41: printing::PrintWebViewHelper* helper = GetPrintWebViewHelper(element); On 2014/08/27 03:34:09, raymes wrote: ...
6 years, 3 months ago (2014-08-27 11:49:57 UTC) #19
blundell
https://codereview.chromium.org/477263003/diff/250001/components/pdf/browser/open_pdf_in_reader_prompt_delegate.h File components/pdf/browser/open_pdf_in_reader_prompt_delegate.h (right): https://codereview.chromium.org/477263003/diff/250001/components/pdf/browser/open_pdf_in_reader_prompt_delegate.h#newcode16 components/pdf/browser/open_pdf_in_reader_prompt_delegate.h:16: class OpenPDFInReaderPromptDelegate { On 2014/08/27 11:49:57, sadrul wrote: > ...
6 years, 3 months ago (2014-08-27 12:24:48 UTC) #20
sadrul
On 2014/08/27 12:24:48, blundell wrote: > https://codereview.chromium.org/477263003/diff/250001/components/pdf/browser/open_pdf_in_reader_prompt_delegate.h > File components/pdf/browser/open_pdf_in_reader_prompt_delegate.h (right): > > https://codereview.chromium.org/477263003/diff/250001/components/pdf/browser/open_pdf_in_reader_prompt_delegate.h#newcode16 > ...
6 years, 3 months ago (2014-08-27 13:42:44 UTC) #21
blundell
//components LGTM The clients should probably have class comments in the headers. Thanks!
6 years, 3 months ago (2014-08-27 13:46:52 UTC) #22
blundell
https://codereview.chromium.org/477263003/diff/310001/components/pdf/browser/open_pdf_in_reader_prompt_client.h File components/pdf/browser/open_pdf_in_reader_prompt_client.h (right): https://codereview.chromium.org/477263003/diff/310001/components/pdf/browser/open_pdf_in_reader_prompt_client.h#newcode16 components/pdf/browser/open_pdf_in_reader_prompt_client.h:16: class OpenPDFInReaderPromptClient { Somehow I'm missing where this interface ...
6 years, 3 months ago (2014-08-27 13:49:46 UTC) #23
Tom Sepez
Could you also put an include of your new message .h file into //src/tools/ipc_fuzzer/message_lib/all_messages.h? LGTM ...
6 years, 3 months ago (2014-08-27 17:24:50 UTC) #24
dmichael (off chromium)
I suspect that's the clang formatter... https://code.google.com/p/chromium/issues/detail?id=373340 (not passing judgement either way, personally... those who ...
6 years, 3 months ago (2014-08-27 20:03:13 UTC) #25
sadrul
On 2014/08/27 17:24:50, Tom Sepez wrote: > Could you also put an include of your ...
6 years, 3 months ago (2014-08-27 23:39:20 UTC) #26
sadrul
sadrul@chromium.org changed reviewers: + darin@chromium.org
6 years, 3 months ago (2014-08-27 23:42:25 UTC) #27
sadrul
+darin@ for added DEPS on third_party/WebKit/public, third_party/skia/include, and ui/base/
6 years, 3 months ago (2014-08-27 23:42:25 UTC) #28
sadrul
On 2014/08/27 23:42:25, sadrul wrote: > +darin@ for added DEPS on third_party/WebKit/public, third_party/skia/include, > and ...
6 years, 3 months ago (2014-08-28 03:49:43 UTC) #29
sadrul
Committed patchset #18 (id:330001) to pending queue manually as 164c7ca (presubmit successful).
6 years, 3 months ago (2014-08-28 03:51:01 UTC) #30
darin (slow to review)
https://codereview.chromium.org/477263003/diff/330001/components/pdf/renderer/ppb_pdf_impl.cc File components/pdf/renderer/ppb_pdf_impl.cc (right): https://codereview.chromium.org/477263003/diff/330001/components/pdf/renderer/ppb_pdf_impl.cc#newcode13 components/pdf/renderer/ppb_pdf_impl.cc:13: #include "content/app/resources/grit/content_resources.h" is it correct for things outside of ...
6 years, 3 months ago (2014-08-28 04:56:26 UTC) #31
sadrul
https://codereview.chromium.org/477263003/diff/330001/components/pdf/renderer/ppb_pdf_impl.cc File components/pdf/renderer/ppb_pdf_impl.cc (right): https://codereview.chromium.org/477263003/diff/330001/components/pdf/renderer/ppb_pdf_impl.cc#newcode13 components/pdf/renderer/ppb_pdf_impl.cc:13: #include "content/app/resources/grit/content_resources.h" On 2014/08/28 04:56:26, darin wrote: > is ...
6 years, 3 months ago (2014-08-28 04:58:28 UTC) #32
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:57:15 UTC) #33
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/2f8807f697e2c043c857ec37c43d45573d239d8f
Cr-Commit-Position: refs/heads/master@{#292313}

Powered by Google App Engine
This is Rietveld 408576698