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

Issue 7044095: Hooking MHTML generation to the browser. (Closed)

Created:
9 years, 6 months ago by Jay Civelli
Modified:
9 years, 6 months ago
CC:
chromium-reviews, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Hooking MHTML generation to the browser. This CL adds a class that can be used to generate MHTML for the current page of a tab. It is not yet surfaced in the UI. BUG=None TEST=Run the browser tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89047

Patch Set 1 #

Patch Set 2 : More stuff #

Patch Set 3 : Style fixes #

Total comments: 19

Patch Set 4 : Applied reviewers suggestions. #

Patch Set 5 : Including some previously lost changes #

Patch Set 6 : Minor clean-up #

Total comments: 6

Patch Set 7 : Addressing John and Pawel's comments. #

Patch Set 8 : Fix for browser test. #

Total comments: 5

Patch Set 9 : Moved the GetFileForProcess to IPC::PlatformFile #

Total comments: 2

Patch Set 10 : Applied Brett's comments #

Patch Set 11 : Synced #

Unified diffs Side-by-side diffs Delta from patch set Stats (+496 lines, -65 lines) Patch
M chrome/browser/browser_process.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
A chrome/browser/download/mhtml_generation_browsertest.cc View 1 2 3 4 5 6 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/download/mhtml_generation_manager.h View 1 2 3 4 5 6 7 8 1 chunk +81 lines, -0 lines 0 comments Download
A chrome/browser/download/mhtml_generation_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +136 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 4 chunks +11 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 3 chunks +11 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 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/renderer/mhtml_generator.h View 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/renderer/mhtml_generator.cc View 1 2 3 4 1 chunk +65 lines, -0 lines 0 comments Download
M chrome/test/testing_browser_process.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/testing_browser_process.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/database_message_filter.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -12 lines 0 comments Download
M content/common/notification_type.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ipc/ipc.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_platform_file.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
A ipc/ipc_platform_file.cc View 1 2 3 4 5 6 7 8 9 1 chunk +43 lines, -0 lines 0 comments Download
M ppapi/proxy/proxy_channel.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -22 lines 0 comments Download
M webkit/database/vfs_backend.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M webkit/database/vfs_backend.cc View 1 1 chunk +0 lines, -24 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Jay Civelli
Randy, Could you review the overall patch? Michael, Could you review the vfs_backend small refactoring? ...
9 years, 6 months ago (2011-06-09 22:15:12 UTC) #1
jam
http://codereview.chromium.org/7044095/diff/4001/content/browser/renderer_host/render_message_filter.cc File content/browser/renderer_host/render_message_filter.cc (right): http://codereview.chromium.org/7044095/diff/4001/content/browser/renderer_host/render_message_filter.cc#newcode25 content/browser/renderer_host/render_message_filter.cc:25: #include "chrome/browser/download/mhtml_generation_manager.h" you'll get a DEPS failure for this, ...
9 years, 6 months ago (2011-06-09 22:32:03 UTC) #2
Paweł Hajdan Jr.
Drive-by with testing comments. http://codereview.chromium.org/7044095/diff/4001/chrome/browser/download/mhtml_generation_browsertest.cc File chrome/browser/download/mhtml_generation_browsertest.cc (right): http://codereview.chromium.org/7044095/diff/4001/chrome/browser/download/mhtml_generation_browsertest.cc#newcode22 chrome/browser/download/mhtml_generation_browsertest.cc:22: FilePath delete_on_teardown_; Please use ScopedTempDir. ...
9 years, 6 months ago (2011-06-10 07:15:51 UTC) #3
Randy Smith (Not in Mondays)
Jay: Thanks for doing this; I'm excited to see it going in. A couple of ...
9 years, 6 months ago (2011-06-10 18:45:38 UTC) #4
Randy Smith (Not in Mondays)
Quick followon comment. http://codereview.chromium.org/7044095/diff/4001/chrome/browser/download/mhtml_generation_manager.h File chrome/browser/download/mhtml_generation_manager.h (right): http://codereview.chromium.org/7044095/diff/4001/chrome/browser/download/mhtml_generation_manager.h#newcode20 chrome/browser/download/mhtml_generation_manager.h:20: BrowserThread::DeleteOnUIThread> { This seems like it's ...
9 years, 6 months ago (2011-06-10 19:49:58 UTC) #5
jam
http://codereview.chromium.org/7044095/diff/4001/chrome/browser/download/mhtml_generation_manager.h File chrome/browser/download/mhtml_generation_manager.h (right): http://codereview.chromium.org/7044095/diff/4001/chrome/browser/download/mhtml_generation_manager.h#newcode20 chrome/browser/download/mhtml_generation_manager.h:20: BrowserThread::DeleteOnUIThread> { On 2011/06/10 19:49:58, rdsmith wrote: > This ...
9 years, 6 months ago (2011-06-10 20:25:06 UTC) #6
Jay Civelli
Addressed all comments. (sorry I sync'ed between patches, so diff to previous patch got polluted) ...
9 years, 6 months ago (2011-06-10 22:38:22 UTC) #7
michaeln
> Michael, > Could you review the vfs_backend small refactoring? (I moved > GetFileHandleForProcess to ...
9 years, 6 months ago (2011-06-10 23:34:46 UTC) #8
jam
http://codereview.chromium.org/7044095/diff/4001/content/browser/renderer_host/render_message_filter.cc File content/browser/renderer_host/render_message_filter.cc (right): http://codereview.chromium.org/7044095/diff/4001/content/browser/renderer_host/render_message_filter.cc#newcode25 content/browser/renderer_host/render_message_filter.cc:25: #include "chrome/browser/download/mhtml_generation_manager.h" On 2011/06/10 22:38:22, Jay Civelli wrote: > ...
9 years, 6 months ago (2011-06-10 23:41:31 UTC) #9
Jay Civelli
On 2011/06/10 23:41:31, John Abd-El-Malek wrote: > http://codereview.chromium.org/7044095/diff/4001/content/browser/renderer_host/render_message_filter.cc > File content/browser/renderer_host/render_message_filter.cc (right): > > http://codereview.chromium.org/7044095/diff/4001/content/browser/renderer_host/render_message_filter.cc#newcode25 ...
9 years, 6 months ago (2011-06-11 00:41:59 UTC) #10
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM with comments. Thanks! http://codereview.chromium.org/7044095/diff/11008/chrome/browser/download/mhtml_generation_browsertest.cc File chrome/browser/download/mhtml_generation_browsertest.cc (right): http://codereview.chromium.org/7044095/diff/11008/chrome/browser/download/mhtml_generation_browsertest.cc#newcode23 ...
9 years, 6 months ago (2011-06-11 18:04:45 UTC) #11
jam
lgtm with the one change http://codereview.chromium.org/7044095/diff/11008/chrome/browser/renderer_host/chrome_render_message_filter.cc File chrome/browser/renderer_host/chrome_render_message_filter.cc (right): http://codereview.chromium.org/7044095/diff/11008/chrome/browser/renderer_host/chrome_render_message_filter.cc#newcode510 chrome/browser/renderer_host/chrome_render_message_filter.cc:510: BrowserThread::UI, FROM_HERE, NewRunnableMethod( if ...
9 years, 6 months ago (2011-06-11 19:10:32 UTC) #12
Randy Smith (Not in Mondays)
LGTM.
9 years, 6 months ago (2011-06-13 17:46:58 UTC) #13
commit-bot: I haz the power
Can't process patch for file base/platform_file.h. File's status is None, patchset upload is incomplete.
9 years, 6 months ago (2011-06-13 22:00:27 UTC) #14
Jay Civelli
Brett, Would you mind reviewing the small change to base/platform_file* (just refactoring some code) http://codereview.chromium.org/7044095/diff/11008/chrome/browser/download/mhtml_generation_browsertest.cc ...
9 years, 6 months ago (2011-06-13 22:45:41 UTC) #15
brettw
http://codereview.chromium.org/7044095/diff/2041/base/platform_file.h File base/platform_file.h (right): http://codereview.chromium.org/7044095/diff/2041/base/platform_file.h#newcode147 base/platform_file.h:147: bool close_source_handle); I'm a little worried that close_source_handle only ...
9 years, 6 months ago (2011-06-13 23:12:36 UTC) #16
piman
http://codereview.chromium.org/7044095/diff/2041/base/platform_file_posix.cc File base/platform_file_posix.cc (right): http://codereview.chromium.org/7044095/diff/2041/base/platform_file_posix.cc#newcode197 base/platform_file_posix.cc:197: return file; from the peanut-gallery: this has a race ...
9 years, 6 months ago (2011-06-13 23:19:42 UTC) #17
Jay Civelli
http://codereview.chromium.org/7044095/diff/2041/base/platform_file.h File base/platform_file.h (right): http://codereview.chromium.org/7044095/diff/2041/base/platform_file.h#newcode147 base/platform_file.h:147: bool close_source_handle); On 2011/06/13 23:12:36, brettw wrote: > I'm ...
9 years, 6 months ago (2011-06-14 00:19:27 UTC) #18
piman
http://codereview.chromium.org/7044095/diff/2041/base/platform_file_posix.cc File base/platform_file_posix.cc (right): http://codereview.chromium.org/7044095/diff/2041/base/platform_file_posix.cc#newcode197 base/platform_file_posix.cc:197: return file; On 2011/06/14 00:19:27, Jay Civelli wrote: > ...
9 years, 6 months ago (2011-06-14 00:31:22 UTC) #19
brettw
LGTM http://codereview.chromium.org/7044095/diff/17002/base/platform_file.h File base/platform_file.h (right): http://codereview.chromium.org/7044095/diff/17002/base/platform_file.h#newcode19 base/platform_file.h:19: #include "base/process.h" Is this necessary any more? http://codereview.chromium.org/7044095/diff/17002/ipc/ipc_platform_file.cc ...
9 years, 6 months ago (2011-06-14 15:17:24 UTC) #20
commit-bot: I haz the power
9 years, 6 months ago (2011-06-14 19:35:13 UTC) #21
Change committed as 89047

Powered by Google App Engine
This is Rietveld 408576698