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

Issue 6995013: More progress towards removing content settings code from the content layer. We can't use Cookie... (Closed)

Created:
9 years, 7 months ago by jam
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Randy Smith (Not in Mondays), darin-cc_chromium.org
Visibility:
Public.

Description

More progress towards removing content settings code from the content layer. We can't use CookiePolicy anymore since, being in the network layer, we can't give it render_process_id/render_view_id, which are needed to put up the content settings UI. Instead of the networking code calling CookiePolicy then calling the delegate (ResourceDispatcherHost) to inform it if something is blocked, we directly ask the delegate if something is allowed. ResourceDispatcherHost then calls the embedder, and passes along the IDs to identify the tab. In the next change, I'll use this mechansim in RenderMessageFilter and remove the CookiePolicy class. BUG=76793 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84881

Patch Set 1 : '' #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : fix net_unittests #

Total comments: 15

Patch Set 5 : review comments and sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -297 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 1 chunk +14 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 2 chunks +80 lines, -2 lines 0 comments Download
M chrome/browser/download/download_manager.h View 1 2 3 4 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/download/download_manager.cc View 1 2 3 4 5 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/download/download_util.h View 1 2 3 4 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/download/download_util.cc View 1 2 3 4 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/download/save_file_manager.h View 1 2 3 4 4 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/download/save_file_manager.cc View 1 2 3 4 4 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/download/save_package.h View 1 2 3 4 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/download/save_package.cc View 1 2 3 4 3 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/extensions/user_script_listener_unittest.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/appcache/chrome_appcache_service.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/content_browser_client.h View 1 2 3 4 2 chunks +25 lines, -1 line 0 comments Download
M content/browser/content_browser_client.cc View 1 2 3 4 1 chunk +22 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 2 chunks +10 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 3 chunks +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.h View 1 2 3 4 5 chunks +14 lines, -12 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.cc View 1 2 3 4 9 chunks +33 lines, -28 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_request_info.h View 1 2 3 4 4 chunks +9 lines, -1 line 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_request_info.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/resource_queue_unittest.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M net/base/cookie_monster.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 1 chunk +10 lines, -11 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
M net/url_request/url_request_http_job.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 1 2 3 4 4 chunks +46 lines, -77 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 2 3 4 6 chunks +18 lines, -34 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 3 4 3 chunks +23 lines, -34 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 10 chunks +5 lines, -25 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jam
9 years, 7 months ago (2011-05-10 04:57:59 UTC) #1
willchan no longer on Chromium
I'm just about done with the review but have to run off. The thing I ...
9 years, 7 months ago (2011-05-10 18:36:56 UTC) #2
jam
http://codereview.chromium.org/6995013/diff/66/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): http://codereview.chromium.org/6995013/diff/66/chrome/browser/chrome_content_browser_client.cc#newcode236 chrome/browser/chrome_content_browser_client.cc:236: net::CookieOptions* options, On 2011/05/10 18:36:56, willchan wrote: > Nit: ...
9 years, 7 months ago (2011-05-10 19:27:22 UTC) #3
willchan no longer on Chromium
9 years, 7 months ago (2011-05-10 22:39:22 UTC) #4
After thinking it over some more, I think I'm fine with the methods being in
URLRequest::Delegate.

LGTM.

http://codereview.chromium.org/6995013/diff/66/chrome/browser/chrome_content_...
File chrome/browser/chrome_content_browser_client.h (right):

http://codereview.chromium.org/6995013/diff/66/chrome/browser/chrome_content_...
chrome/browser/chrome_content_browser_client.h:36: int render_view_id);
That's a perfectly valid opinion and I think it makes sense.

On 2011/05/10 19:27:22, John Abd-El-Malek wrote:
> On 2011/05/10 18:36:56, willchan wrote:
> > Nit: I leave it up to you, but I think the recommended practice nowadays may
> be
> > to add a OVERRIDE at the end of these declarations, so that no one
subclasses
> > this and re-overrides the member function.
> 
> I thought the point is to guard against the base class' function changes, and
> people forgetting to update derived classes.  I've grown to see the benefit of
> it recently, but I find in these embedding APIs, where there's only one
> implementation of the interface, it's not necessary since there's only one
> place.  If someone changes ContentBrowserClient, they surely are doing it for
> ChroemContentBrowserClient.
> 
> > OVERRIDE is defined in base/compiler_specific.h.
>

Powered by Google App Engine
This is Rietveld 408576698