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

Issue 9375017: Support sharing of ContentMain and BrowserMain code with embedded use cases (try #3). (Closed)

Created:
8 years, 10 months ago by Marshall
Modified:
8 years, 10 months ago
Reviewers:
jam
CC:
chromium-reviews, cbentzel+watch_chromium.org, amit, joi+watch-content_chromium.org, darin-cc_chromium.org, robertshield
Visibility:
Public.

Description

Support sharing of ContentMain and BrowserMain code with embedded use cases (try #3). For the browser use case it is convenient to have a single ContentMain entry point function that handles all initialization, run and shutdown. For embedded use cases it is often necessary to integrate with existing application message loops where initialization and shutdown must be handled separately. To support sharing of this code the following changes were required: 1. Refactor the ContentMain function to create a ContentMainRunner class containing separate initialization, run and shutdown functions. 2. Refactor the BrowserMain function and BrowserMainLoop class to create a BrowserMainRunner class containing separate initialization, run and shutdown functions. 3. Add a new BrowserMainParts::GetMainMessageLoop method. This is necessary to support creation of a custom MessageLoop implementation while sharing BrowserMainRunner initialization and shutdown code. BUG=112507 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=121454

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+495 lines, -795 lines) Patch
M chrome/app/chrome_main.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/chrome_browser_main.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/base/chrome_test_launcher.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome_frame/test/net/fake_external_tab.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome_frame/test/net/fake_external_tab.cc View 2 chunks +5 lines, -1 line 0 comments Download
M content/app/content_main.h View 3 1 chunk +0 lines, -43 lines 0 comments Download
M content/app/content_main.cc View 1 chunk +11 lines, -441 lines 0 comments Download
A + content/app/content_main_runner.cc View 1 2 3 4 5 chunks +211 lines, -126 lines 0 comments Download
M content/browser/browser_main.cc View 1 chunk +10 lines, -87 lines 0 comments Download
M content/browser/browser_main_loop.h View 1 chunk +12 lines, -6 lines 0 comments Download
M content/browser/browser_main_loop.cc View 4 chunks +8 lines, -9 lines 0 comments Download
A + content/browser/browser_main_runner.cc View 2 chunks +102 lines, -59 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 2 chunks +3 lines, -1 line 0 comments Download
M content/content_app.gypi View 2 chunks +4 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
A + content/public/app/content_main.h View 2 chunks +4 lines, -4 lines 0 comments Download
M content/public/app/content_main_delegate.h View 2 chunks +2 lines, -2 lines 0 comments Download
A content/public/app/content_main_runner.h View 1 chunk +57 lines, -0 lines 0 comments Download
M content/public/browser/browser_main_parts.h View 2 chunks +6 lines, -0 lines 0 comments Download
A content/public/browser/browser_main_runner.h View 1 chunk +37 lines, -0 lines 0 comments Download
M content/shell/shell_browser_main.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/shell/shell_browser_main.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/shell/shell_main.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/shell_main_delegate.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/test/content_test_launcher.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jam
what changed since last commit? can you upload a patchset with the reverted change, and ...
8 years, 10 months ago (2012-02-09 17:33:41 UTC) #1
Marshall
On 2012/02/09 17:33:41, John Abd-El-Malek wrote: > what changed since last commit? > > can ...
8 years, 10 months ago (2012-02-09 17:36:12 UTC) #2
jam
On 2012/02/09 17:36:12, Marshall wrote: > On 2012/02/09 17:33:41, John Abd-El-Malek wrote: > > what ...
8 years, 10 months ago (2012-02-09 18:21:09 UTC) #3
Marshall
Previous patch set: http://codereview.chromium.org/9347022/ Please review the changes to content_main_runner.cc in delta 4. With the ...
8 years, 10 months ago (2012-02-09 21:25:23 UTC) #4
jam
8 years, 10 months ago (2012-02-09 22:11:30 UTC) #5
lgtm

Powered by Google App Engine
This is Rietveld 408576698