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

Issue 6713082: Move WebUIFactory to chrome/browser. (Closed)

Created:
9 years, 9 months ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, tburkard+watch_chromium.org, Erik does not do reviews, jam, Aaron Boodman, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Move WebUIFactory to chrome/browser. This reduces dependencies from content/ to chrome/. WebUIFactory is the interface in content/ to ChromeWebUIFactory in chrome/ BUG=77092 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=79691

Patch Set 1 #

Patch Set 2 : register #

Patch Set 3 : get rid of pass through #

Patch Set 4 : fix header define #

Patch Set 5 : fix presubmit warning #

Patch Set 6 : merge #

Total comments: 8

Patch Set 7 : ContentWebUIClient #

Total comments: 1

Patch Set 8 : . #

Patch Set 9 : remove WebUISource references #

Total comments: 8

Patch Set 10 : jam review #

Patch Set 11 : s/and // #

Patch Set 12 : new file #

Patch Set 13 : synced #

Unified diffs Side-by-side diffs Delta from patch set Stats (+648 lines, -430 lines) Patch
M chrome/browser/browser_url_handler.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/favicon_service.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/notifications/balloon_host.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/notifications/balloon_host.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/background_contents.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/background_contents.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_host_delegate_helper.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/render_view_host_delegate_helper.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_navigator.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
A chrome/browser/ui/webui/chrome_web_ui_factory.h View 1 2 3 4 5 6 7 8 9 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chrome_web_ui_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +359 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/browsing_instance.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -2 lines 0 comments Download
M content/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
A content/browser/content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +17 lines, -0 lines 0 comments Download
M content/browser/site_instance.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/tab_contents/render_view_host_manager.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -4 lines 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -3 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 9 8 chunks +19 lines, -13 lines 0 comments Download
M content/browser/tab_contents/tab_contents_view.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
A content/browser/webui/empty_web_ui_factory.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +37 lines, -0 lines 0 comments Download
A content/browser/webui/empty_web_ui_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +44 lines, -0 lines 0 comments Download
A + content/browser/webui/generic_handler.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A + content/browser/webui/generic_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/webui/web_ui.h View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/webui/web_ui.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -2 lines 0 comments Download
D content/browser/webui/web_ui_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +37 lines, -48 lines 0 comments Download
M content/browser/webui/web_ui_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -336 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Evan Stade
looks like a big review, but most files only have 1-2 lines changed.
9 years, 9 months ago (2011-03-24 01:45:30 UTC) #1
jam
Thanks for doing this. I haven't looked at the WebUI code before, so I feel ...
9 years, 9 months ago (2011-03-24 03:07:46 UTC) #2
Avi (use Gerrit)
On 2011/03/24 03:07:46, John Abd-El-Malek wrote: > I haven't looked at the WebUI code before, ...
9 years, 9 months ago (2011-03-24 14:29:19 UTC) #3
Evan Stade
this doesn't change the WebUI code at all. If one or both of you want ...
9 years, 9 months ago (2011-03-24 18:38:33 UTC) #4
Evan Stade
arv OOO, adding Stuart instead
9 years, 9 months ago (2011-03-24 20:21:55 UTC) #5
stuartmorgan
jam/avi: FWIW, there's nothing that's specific to WebUI in the essence of this CL which ...
9 years, 9 months ago (2011-03-24 21:09:41 UTC) #6
Evan Stade
http://codereview.chromium.org/6713082/diff/8001/content/browser/webui/web_ui_register.h File content/browser/webui/web_ui_register.h (right): http://codereview.chromium.org/6713082/diff/8001/content/browser/webui/web_ui_register.h#newcode11 content/browser/webui/web_ui_register.h:11: class WebUIRegister { register is also a noun. As ...
9 years, 9 months ago (2011-03-24 21:28:40 UTC) #7
jam
http://codereview.chromium.org/6713082/diff/8001/content/browser/webui/web_ui_register.h File content/browser/webui/web_ui_register.h (right): http://codereview.chromium.org/6713082/diff/8001/content/browser/webui/web_ui_register.h#newcode10 content/browser/webui/web_ui_register.h:10: // registers a signle WebUISource at a time. nit: ...
9 years, 9 months ago (2011-03-24 21:38:43 UTC) #8
jam
On Thu, Mar 24, 2011 at 2:09 PM, <stuartmorgan@chromium.org> wrote: > jam/avi: FWIW, there's nothing ...
9 years, 9 months ago (2011-03-24 21:44:36 UTC) #9
Evan Stade
re: ContentBrowserClient - to make sure I understand you correctly, you just want me to ...
9 years, 9 months ago (2011-03-24 21:52:40 UTC) #10
jam
On Thu, Mar 24, 2011 at 2:52 PM, <estade@chromium.org> wrote: > re: ContentBrowserClient - to ...
9 years, 9 months ago (2011-03-24 22:02:56 UTC) #11
Evan Stade
I added a new client, ContentWebUIClient instead of adding onto ContentBrowserClient, because it seems like ...
9 years, 9 months ago (2011-03-24 23:02:20 UTC) #12
stuartmorgan
LGTM assuming jam is happy with the new top-level client. http://codereview.chromium.org/6713082/diff/2007/content/browser/tab_contents/tab_contents.h File content/browser/tab_contents/tab_contents.h (right): http://codereview.chromium.org/6713082/diff/2007/content/browser/tab_contents/tab_contents.h#newcode708 ...
9 years, 9 months ago (2011-03-24 23:14:31 UTC) #13
Evan Stade
updated
9 years, 9 months ago (2011-03-25 00:23:22 UTC) #14
jam
lgtm http://codereview.chromium.org/6713082/diff/9001/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/6713082/diff/9001/chrome/browser/browser_main.cc#newcode1460 chrome/browser/browser_main.cc:1460: // Override the default ContentBrowserClient and to let ...
9 years, 9 months ago (2011-03-25 02:10:01 UTC) #15
Evan Stade
http://codereview.chromium.org/6713082/diff/9001/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/6713082/diff/9001/chrome/browser/browser_main.cc#newcode1460 chrome/browser/browser_main.cc:1460: // Override the default ContentBrowserClient and to let Chrome ...
9 years, 9 months ago (2011-03-29 00:14:16 UTC) #16
Evan Stade
still lgty John?
9 years, 9 months ago (2011-03-29 04:26:53 UTC) #17
jam
9 years, 9 months ago (2011-03-29 04:59:30 UTC) #18
On Mon, Mar 28, 2011 at 5:14 PM, <estade@chromium.org> wrote:

>
>
>
http://codereview.chromium.org/6713082/diff/9001/chrome/browser/browser_main.cc
> File chrome/browser/browser_main.cc (right):
>
>
>
http://codereview.chromium.org/6713082/diff/9001/chrome/browser/browser_main....
> chrome/browser/browser_main.cc:1460: // Override the default
> ContentBrowserClient and to let Chrome participate in
> On 2011/03/25 02:10:02, John Abd-El-Malek wrote:
>
>> nit: it was written like that on purpose.  putting "and" means that 1
>>
> & 2 are
>
>> both needed, where here 1 is done for 2
>>
>
> (besides the fact that it's ungrammatical now)
>
> I think this change was accidentally left over from when I was going to
> put "Override the default ContentBrowserClient and ContentWebUIClient
> to..."
>
>
>
>
http://codereview.chromium.org/6713082/diff/9001/content/browser/browsing_ins...
> File content/browser/browsing_instance.cc (right):
>
>
>
http://codereview.chromium.org/6713082/diff/9001/content/browser/browsing_ins...
> content/browser/browsing_instance.cc:44: if
> (content::GetContentClient()->browser()->GetWebUIFactory()->
> On 2011/03/25 02:10:02, John Abd-El-Malek wrote:
>
>> content::GetContentClient()->browser()->GetWebUIFactory()
>>
>
>  is a little long to repeat in a bunch of places.  can we have
>>
> WebUI::Get() or
>
>> something similar that does this?
>>
>
> Done.
>
>
>
>
http://codereview.chromium.org/6713082/diff/9001/content/browser/content_brow...
> File content/browser/content_browser_client.h (right):
>
>
>
http://codereview.chromium.org/6713082/diff/9001/content/browser/content_brow...
> content/browser/content_browser_client.h:28: virtual WebUIFactory*
> GetWebUIFactory() = 0;
> On 2011/03/25 02:10:02, John Abd-El-Malek wrote:
>
>> the ContentClient APIs all have default implementations, so please add
>>
> one that
>
>> returns NULL
>>
>
> well, I specifically don't want to allow NULL because I don't want to
> have to check for it, but I've added a stub implementation for it to
> return.


can the stub implementation be moved to another file?  (i.e.
content/browser/webui/empty_web_ui_factory.h)  with that lgtm

>
>
>
>
http://codereview.chromium.org/6713082/diff/9001/content/browser/webui/web_ui.h
> File content/browser/webui/web_ui.h (right):
>
>
>
http://codereview.chromium.org/6713082/diff/9001/content/browser/webui/web_ui...
> content/browser/webui/web_ui.h:148: typedef void* WebUITypeID;
> On 2011/03/25 02:10:02, John Abd-El-Malek wrote:
>
>> nit: now that this is inside WebUI, can it just be TypeID so we don't
>>
> end up
>
>> with the redundant WebUI::WebUITypeID
>>
>
> Done.
>
>
> http://codereview.chromium.org/6713082/
>

Powered by Google App Engine
This is Rietveld 408576698