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

Issue 10837230: Move StoragePartition into content/public and remove BrowserContext::GetDOMStorageContext(). (Closed)

Created:
8 years, 4 months ago by awong
Modified:
8 years, 4 months ago
Reviewers:
Charlie Reis, jam
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, creis+watch_chromium.org, marja+watch_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, ajwong+watch_chromium.org, markusheintz_, alecflett, marja, ericu, michaeln, nasko
Visibility:
Public.

Description

Move StoragePartition into content/public and remove BrowserContext::GetDOMStorageContext(). Eventually all the storage context accessors will be removed from BrowserContext. Instead, users should retrieve the storage context from the StoragePartition. This also changes RenderProcessHost to take in a StoragePartition removing the need for a re-lookup its storage contexts. BUG=85121, 143486 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152251

Patch Set 1 #

Patch Set 2 : Fix ForEach() #

Patch Set 3 : try again #

Patch Set 4 : merged #

Patch Set 5 : style fixes. #

Total comments: 20

Patch Set 6 : add missing include #

Patch Set 7 : address Charlie's comments #

Patch Set 8 : fix segv #

Patch Set 9 : address michaeln's comments #

Total comments: 13

Patch Set 10 : address Jogn's coments. #

Patch Set 11 : remove DISALLOW_COPY_AND_ASSIGN, and change RPH::CreateMessageFilters() to not suddenly isolate all… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+399 lines, -553 lines) Patch
M chrome/browser/browsing_data/browsing_data_local_storage_helper.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/data_deleter.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/sessions/session_restore.cc View 1 2 3 4 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/startup/session_crashed_prompt.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/browser_context.cc View 1 2 3 4 5 6 7 6 chunks +70 lines, -112 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 3 chunks +12 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +12 lines, -6 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/site_instance_impl.cc View 10 chunks +17 lines, -15 lines 0 comments Download
M content/browser/site_instance_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +27 lines, -3 lines 0 comments Download
D content/browser/storage_partition.h View 1 chunk +0 lines, -77 lines 0 comments Download
D content/browser/storage_partition.cc View 1 chunk +0 lines, -104 lines 0 comments Download
A content/browser/storage_partition_impl.h View 1 chunk +57 lines, -0 lines 0 comments Download
A + content/browser/storage_partition_impl.cc View 4 chunks +42 lines, -20 lines 0 comments Download
A + content/browser/storage_partition_impl_map.h View 1 2 chunks +9 lines, -8 lines 0 comments Download
A + content/browser/storage_partition_impl_map.cc View 1 2 3 4 5 6 7 8 5 chunks +17 lines, -16 lines 0 comments Download
D content/browser/storage_partition_map.h View 1 1 chunk +0 lines, -49 lines 0 comments Download
D content/browser/storage_partition_map.cc View 1 1 chunk +0 lines, -94 lines 0 comments Download
M content/browser/web_contents/interstitial_page_impl.cc View 2 chunks +3 lines, -6 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -3 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -4 lines 0 comments Download
M content/public/browser/browser_context.h View 1 2 3 4 5 6 3 chunks +19 lines, -6 lines 0 comments Download
M content/public/browser/resource_context.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
A content/public/browser/storage_partition.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +53 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
awong
Primary review is for Charlie, my favorite reviewer :) marja, michaeln, ericu, alecfett CCed as ...
8 years, 4 months ago (2012-08-14 17:12:08 UTC) #1
Charlie Reis
Nice progress towards where we want to be! https://chromiumcodereview.appspot.com/10837230/diff/5032/content/browser/browser_context.cc File content/browser/browser_context.cc (right): https://chromiumcodereview.appspot.com/10837230/diff/5032/content/browser/browser_context.cc#newcode154 content/browser/browser_context.cc:154: if ...
8 years, 4 months ago (2012-08-14 18:50:12 UTC) #2
awong
Comments addressed. There's some suspicious try failures though. Debugging. https://chromiumcodereview.appspot.com/10837230/diff/5032/content/browser/browser_context.cc File content/browser/browser_context.cc (right): https://chromiumcodereview.appspot.com/10837230/diff/5032/content/browser/browser_context.cc#newcode154 content/browser/browser_context.cc:154: ...
8 years, 4 months ago (2012-08-14 19:12:46 UTC) #3
michaeln
jam should probably take a look at this too since it's adding public content api ...
8 years, 4 months ago (2012-08-14 22:12:50 UTC) #4
awong
Stupid me accidentally deleted the wrong patch set, but I responded to your comments below. ...
8 years, 4 months ago (2012-08-14 23:05:49 UTC) #5
Charlie Reis
Ok, LGTM.
8 years, 4 months ago (2012-08-14 23:48:48 UTC) #6
awong
jam@ did you want to look over adding StoragePartition into the public API for content? ...
8 years, 4 months ago (2012-08-14 23:58:28 UTC) #7
jam
public lgtm, just some nits http://codereview.chromium.org/10837230/diff/4039/content/browser/storage_partition_impl.h File content/browser/storage_partition_impl.h (right): http://codereview.chromium.org/10837230/diff/4039/content/browser/storage_partition_impl.h#newcode11 content/browser/storage_partition_impl.h:11: #include "content/browser/appcache/chrome_appcache_service.h" nit: i ...
8 years, 4 months ago (2012-08-15 15:16:21 UTC) #8
awong
http://codereview.chromium.org/10837230/diff/4039/content/browser/storage_partition_impl.h File content/browser/storage_partition_impl.h (right): http://codereview.chromium.org/10837230/diff/4039/content/browser/storage_partition_impl.h#newcode11 content/browser/storage_partition_impl.h:11: #include "content/browser/appcache/chrome_appcache_service.h" On 2012/08/15 15:16:22, John Abd-El-Malek wrote: > ...
8 years, 4 months ago (2012-08-17 00:52:38 UTC) #9
jam
http://codereview.chromium.org/10837230/diff/4039/content/public/browser/resource_context.h File content/public/browser/resource_context.h (right): http://codereview.chromium.org/10837230/diff/4039/content/public/browser/resource_context.h#newcode37 content/public/browser/resource_context.h:37: DISALLOW_COPY_AND_ASSIGN(ResourceContext); On 2012/08/17 00:52:39, awong wrote: > On 2012/08/15 ...
8 years, 4 months ago (2012-08-17 16:42:23 UTC) #10
awong
Removed all the DISALLOW_COPY_AND_ASSIGNs for now as I track down some other C++ readability guys ...
8 years, 4 months ago (2012-08-18 01:35:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajwong@chromium.org/10837230/12064
8 years, 4 months ago (2012-08-18 06:34:59 UTC) #12
commit-bot: I haz the power
8 years, 4 months ago (2012-08-18 08:54:36 UTC) #13
Change committed as 152251

Powered by Google App Engine
This is Rietveld 408576698