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

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed)

Created:
8 years, 10 months ago by jam
Modified:
8 years, 10 months ago
CC:
chromium-reviews, michaeln, hclam+watch_chromium.org, achuith+watch_chromium.org, nkostylev+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, acolwell+watch_chromium.org, jam, annacc+watch_chromium.org, mihaip+watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, rginda+watch_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, brettw-cc_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing), stevenjb+watch_chromium.org, davemoore+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't have setters/getters on it, and make all the functions pure virtual). BUG=98716 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=121287

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : fix tests #

Patch Set 5 : fix tests2 #

Patch Set 6 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+638 lines, -657 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 3 chunks +10 lines, -11 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 10 chunks +20 lines, -32 lines 0 comments Download
M chrome/browser/chromeos/gview_request_interceptor_unittest.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/download/download_extension_api.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_extension_api.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 4 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 3 chunks +33 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 4 chunks +91 lines, -17 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/renderer_host/plugin_info_message_filter.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/plugin_info_message_filter.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/transfer_navigation_resource_throttle.cc View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/speech/speech_input_bubble_gtk.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/speech/speech_input_bubble_views.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/speech/speech_input_extension_apitest.cc View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/speech/speech_input_extension_manager.h View 1 2 3 4 5 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/speech/speech_input_extension_manager.cc View 1 2 3 4 5 5 chunks +10 lines, -10 lines 0 comments Download
M chrome/test/base/in_process_browser_test.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/in_process_browser_test.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/appcache/chrome_appcache_service.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/appcache/chrome_appcache_service.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/appcache/chrome_appcache_service_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/download/save_file_manager.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/download/save_file_manager.cc View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/mock_content_browser_client.h View 1 2 3 4 5 3 chunks +10 lines, -10 lines 0 comments Download
M content/browser/mock_content_browser_client.cc View 1 2 3 4 5 8 chunks +10 lines, -10 lines 0 comments Download
M content/browser/mock_resource_context.h View 1 2 3 4 5 2 chunks +35 lines, -6 lines 0 comments Download
M content/browser/mock_resource_context.cc View 1 2 3 4 5 1 chunk +56 lines, -3 lines 0 comments Download
M content/browser/plugin_data_remover_impl.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/plugin_data_remover_impl.cc View 1 2 3 4 5 5 chunks +5 lines, -5 lines 0 comments Download
M content/browser/plugin_process_host.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/plugin_process_host.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/plugin_service_filter.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/plugin_service_impl.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/plugin_service_impl.cc View 1 2 3 4 5 5 chunks +6 lines, -6 lines 0 comments Download
M content/browser/plugin_service_impl_browsertest.cc View 1 2 3 4 5 8 chunks +8 lines, -8 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/async_resource_handler.cc View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/buffered_resource_handler.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/audio_input_renderer_host.cc View 1 2 3 4 5 4 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/audio_renderer_host_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_host.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host.cc View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_host_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/p2p/socket_dispatcher_host.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/p2p/socket_dispatcher_host.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/pepper_message_filter.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/renderer_host/pepper_message_filter.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 8 chunks +10 lines, -9 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.h View 1 2 3 4 5 5 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.cc View 1 2 3 4 5 13 chunks +20 lines, -21 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_request_info.h View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_request_info.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_unittest.cc View 1 2 3 4 5 5 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/resource_message_filter.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/resource_message_filter.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/socket_stream_dispatcher_host.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/socket_stream_dispatcher_host.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/resource_context.h View 1 2 3 4 5 1 chunk +13 lines, -65 lines 0 comments Download
M content/browser/resource_context.cc View 1 2 3 4 5 2 chunks +0 lines, -159 lines 0 comments Download
M content/browser/speech/speech_input_dispatcher_host.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/speech/speech_input_dispatcher_host.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/speech/speech_input_manager.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/speech/speech_input_manager.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/worker_host/worker_message_filter.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/worker_host/worker_message_filter.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/worker_host/worker_process_host.h View 1 2 3 4 5 6 chunks +8 lines, -8 lines 0 comments Download
M content/browser/worker_host/worker_process_host.cc View 1 2 3 4 5 12 chunks +15 lines, -18 lines 0 comments Download
M content/browser/worker_host/worker_service_impl.h View 1 2 3 4 5 2 chunks +6 lines, -6 lines 0 comments Download
M content/browser/worker_host/worker_service_impl.cc View 1 2 3 4 5 8 chunks +8 lines, -8 lines 0 comments Download
M content/public/browser/browser_context.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 7 chunks +10 lines, -11 lines 0 comments Download
M content/public/browser/plugin_data_remover.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M content/public/browser/plugin_service.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.h View 1 2 3 4 5 4 chunks +4 lines, -4 lines 0 comments Download
M content/public/browser/resource_dispatcher_host_delegate.cc View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M content/shell/shell_browser_context.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/shell/shell_browser_context.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M content/shell/shell_content_browser_client.h View 1 2 3 4 5 3 chunks +10 lines, -10 lines 0 comments Download
M content/shell/shell_content_browser_client.cc View 1 2 3 4 5 8 chunks +10 lines, -10 lines 0 comments Download
M content/shell/shell_resource_context.h View 1 2 3 4 5 1 chunk +12 lines, -3 lines 0 comments Download
M content/shell/shell_resource_context.cc View 1 2 3 4 5 1 chunk +41 lines, -6 lines 0 comments Download
M content/test/test_browser_context.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_browser_context.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/webrtc_audio_device_test.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M content/test/webrtc_audio_device_test.cc View 1 2 3 4 5 3 chunks +2 lines, -11 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jam
This looks much bigger than it is, because I had to make all the ResourceContext ...
8 years, 10 months ago (2012-02-09 00:50:56 UTC) #1
Elliot Glaysher
+willchan for ProfileIO work (all your other stuff lgtm, but wait for Will because I ...
8 years, 10 months ago (2012-02-09 01:06:32 UTC) #2
willchan no longer on Chromium
lgtm
8 years, 10 months ago (2012-02-09 19:48:06 UTC) #3
willchan no longer on Chromium
8 years, 10 months ago (2012-02-09 19:56:45 UTC) #4
Oh, I should have documented jam/my offline discussion about the change.
I've deferred to him since this rightly belongs to the content API, so it
makes sense to make it consistent with all the rest.

I personally like to mark objects that are conceptually const for the
lifetime of the process (ProfileIOData / ResourceContext) as const, even if
the const values are lazily initialized on first use. jam disagreed, for
the obvious reason that lazy initialization means the object is being
mutated. As content::ResourceContext is very widely used in content/ and I
trust jam's judgment with regards to how he wants to maintain that code
base, and ProfileIOData's scope is very small (it's basically only used
during initialization, and should *not* be widely accessible), the change
to ProfileIOData is minor and acceptable to me. I hope the addition of the
ProfileIOData::FromResourceContext() API does not lead to a proliferation
of ProfileIOData being accessed widely, as that would be very bad.

On Thu, Feb 9, 2012 at 11:48 AM, <willchan@chromium.org> wrote:

> lgtm
>
>
>
>
http://codereview.chromium.**org/9369009/<http://codereview.chromium.org/9369...
>

Powered by Google App Engine
This is Rietveld 408576698