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

Issue 6854035: Move blocked content from TabContents to TabContentsWrapper. (Closed)

Created:
9 years, 8 months ago by Avi (use Gerrit)
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Move blocked content from TabContents to TabContentsWrapper. BUG=71097 TEST=hammer on popup blocking; should be no visible change Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82643

Patch Set 1 #

Total comments: 4

Patch Set 2 : move blocked content stuff to blocked content #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : rebase again #

Total comments: 40

Patch Set 6 : fixes #

Patch Set 7 : put back user_gesture #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+621 lines, -409 lines) Patch
M chrome/browser/automation/automation_provider.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 11 chunks +63 lines, -66 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/instant/instant_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
A + chrome/browser/ui/blocked_content/blocked_content_container.h View 1 2 3 6 4 chunks +29 lines, -19 lines 0 comments Download
A + chrome/browser/ui/blocked_content/blocked_content_container.cc View 1 2 3 4 6 10 chunks +48 lines, -32 lines 0 comments Download
A chrome/browser/ui/blocked_content/blocked_content_tab_helper.h View 1 2 3 4 5 6 1 chunk +83 lines, -0 lines 0 comments Download
A chrome/browser/ui/blocked_content/blocked_content_tab_helper.cc View 1 2 3 4 5 6 1 chunk +117 lines, -0 lines 2 comments Download
A chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate.h View 1 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 6 8 chunks +62 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_unittest.mm View 3 chunks +26 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm View 1 4 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 2 chunks +2 lines, -2 lines 0 comments Download
A + chrome/browser/ui/content_settings/content_setting_bubble_model.h View 7 chunks +9 lines, -9 lines 0 comments Download
A + chrome/browser/ui/content_settings/content_setting_bubble_model.cc View 1 18 chunks +45 lines, -43 lines 0 comments Download
A + chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc View 7 chunks +11 lines, -11 lines 0 comments Download
A + chrome/browser/ui/content_settings/content_setting_combo_model.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + chrome/browser/ui/content_settings/content_setting_combo_model.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
A + chrome/browser/ui/content_settings/content_setting_image_model.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + chrome/browser/ui/content_settings/content_setting_image_model.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/ui/content_settings/content_setting_image_model_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/collected_cookies_gtk.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/content_setting_bubble_gtk.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 1 2 3 4 5 6 5 chunks +6 lines, -5 lines 0 comments Download
chrome/browser/ui/tab_contents/tab_contents_wrapper.h View 1 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/collected_cookies_win.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/content_setting_bubble_contents.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 4 chunks +12 lines, -8 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 3 4 9 chunks +8 lines, -43 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 9 chunks +6 lines, -112 lines 0 comments Download
M content/browser/tab_contents/tab_contents_delegate.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents_observer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents_view.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
Avi (use Gerrit)
jochen: this is your area, review away jam: fyi; anything jochen doesn't cover As bad ...
9 years, 8 months ago (2011-04-14 21:23:25 UTC) #1
Avi (use Gerrit)
BTW, what wasn't moved was TabSpecificContentSettings. Alas, it's called from the renderer code, so it'll ...
9 years, 8 months ago (2011-04-14 21:41:57 UTC) #2
jochen (gone - plz use gerrit)
http://codereview.chromium.org/6854035/diff/1/chrome/browser/ui/content_settings/content_settings_tab_helper.h File chrome/browser/ui/content_settings/content_settings_tab_helper.h (right): http://codereview.chromium.org/6854035/diff/1/chrome/browser/ui/content_settings/content_settings_tab_helper.h#newcode19 chrome/browser/ui/content_settings/content_settings_tab_helper.h:19: // Per-tab class to manage various allowed and disallowed ...
9 years, 8 months ago (2011-04-14 23:11:04 UTC) #3
Avi (use Gerrit)
http://codereview.chromium.org/6854035/diff/1/chrome/browser/ui/content_settings/content_settings_tab_helper.h File chrome/browser/ui/content_settings/content_settings_tab_helper.h (right): http://codereview.chromium.org/6854035/diff/1/chrome/browser/ui/content_settings/content_settings_tab_helper.h#newcode19 chrome/browser/ui/content_settings/content_settings_tab_helper.h:19: // Per-tab class to manage various allowed and disallowed ...
9 years, 8 months ago (2011-04-15 00:20:12 UTC) #4
Avi (use Gerrit)
OK, new snapshot up, should be a lot more to your liking. Please take a ...
9 years, 8 months ago (2011-04-15 16:00:00 UTC) #5
Avi (use Gerrit)
jochen-- ping; please review
9 years, 8 months ago (2011-04-18 13:25:32 UTC) #6
Avi (use Gerrit)
John, until Jochen can take a look, can you review? I'm out for tomorrow/Wed, but ...
9 years, 8 months ago (2011-04-18 17:11:48 UTC) #7
Avi (use Gerrit)
Sky, can you look at this? I'd like to land this as the ground keeps ...
9 years, 8 months ago (2011-04-21 13:50:32 UTC) #8
Avi (use Gerrit)
Gah, sky's out 'til Monday. Elliot?
9 years, 8 months ago (2011-04-21 13:57:38 UTC) #9
Avi (use Gerrit)
Adding Steven. Steven, you committed your popup fix which I had to incorporate into this ...
9 years, 8 months ago (2011-04-21 15:21:02 UTC) #10
stevenjb
This will have some conflicts with http://codereview.chromium.org/6881073/, but I am happy to hold off on ...
9 years, 8 months ago (2011-04-21 19:02:59 UTC) #11
Avi (use Gerrit)
http://codereview.chromium.org/6854035/diff/14002/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/6854035/diff/14002/chrome/browser/automation/testing_automation_provider.cc#newcode2012 chrome/browser/automation/testing_automation_provider.cc:2012: TabContentsWrapper* tab_contents = On 2011/04/21 19:03:00, Steven Bennetts wrote: ...
9 years, 8 months ago (2011-04-21 20:06:02 UTC) #12
stevenjb
LGTM http://codereview.chromium.org/6854035/diff/14002/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/6854035/diff/14002/chrome/browser/automation/testing_automation_provider.cc#newcode2012 chrome/browser/automation/testing_automation_provider.cc:2012: TabContentsWrapper* tab_contents = On 2011/04/21 20:06:02, Avi wrote: ...
9 years, 8 months ago (2011-04-21 21:06:44 UTC) #13
Avi (use Gerrit)
On 2011/04/21 21:06:44, Steven Bennetts wrote: > Yeah, this makes more sense after doing the ...
9 years, 8 months ago (2011-04-21 21:13:43 UTC) #14
Avi (use Gerrit)
I just realized an issue. If we drop the user_gesture flag from the blockedcontentcontainer, I ...
9 years, 8 months ago (2011-04-21 21:20:50 UTC) #15
stevenjb
One small comment that you can ignore if you like. LGTM. http://codereview.chromium.org/6854035/diff/19001/chrome/browser/ui/blocked_content/blocked_content_tab_helper.cc File chrome/browser/ui/blocked_content/blocked_content_tab_helper.cc (right): ...
9 years, 8 months ago (2011-04-21 22:38:07 UTC) #16
Avi (use Gerrit)
9 years, 8 months ago (2011-04-22 03:22:28 UTC) #17
http://codereview.chromium.org/6854035/diff/19001/chrome/browser/ui/blocked_c...
File chrome/browser/ui/blocked_content/blocked_content_tab_helper.cc (right):

http://codereview.chromium.org/6854035/diff/19001/chrome/browser/ui/blocked_c...
chrome/browser/ui/blocked_content/blocked_content_tab_helper.cc:73: bool
user_gesture) {
On 2011/04/21 22:38:07, Steven Bennetts wrote:
> This doesn't actually need user_gesture since it doesn't use it.

True. Next CL; I just want to commit this :)

Powered by Google App Engine
This is Rietveld 408576698