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

Issue 10690096: Extracted inner class doing process dispatch. (Closed)

Created:
8 years, 5 months ago by noyau (Ping after 24h)
Modified:
8 years, 5 months ago
Reviewers:
Miranda Callahan
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Extracted inner class doing process dispatch. The inner class WebResourceService::UnpackerClient is dispatching a json parsing job to a subprocess. In iOS launching a subprocess is not supported. In order to replace this class on this particular platform by one doing a thread dispatch the class has been renamed and refactored in its own file. In doing so an abstract superclass was crated to make the API more obvious. The iOS subclass already exists in the iOS tree, and will be brought up with the rest of the iOS browser changes. BUG=b/6753678 TEST=No user visible changes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145689

Patch Set 1 : . #

Patch Set 2 : Small tweaks. #

Patch Set 3 : FIxing initialization bug. #

Total comments: 12

Patch Set 4 : #

Total comments: 2

Patch Set 5 : Adding comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -115 lines) Patch
A build/all.gyp View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
A chrome/browser/web_resource/json_asynchronous_unpacker.h View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/web_resource/json_asynchronous_unpacker.cc View 1 2 3 1 chunk +124 lines, -0 lines 0 comments Download
M chrome/browser/web_resource/notification_promo.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/web_resource/promo_resource_service.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/web_resource/web_resource_service.h View 1 2 3 4 4 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/web_resource/web_resource_service.cc View 1 2 3 5 chunks +21 lines, -112 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
noyau (Ping after 24h)
8 years, 5 months ago (2012-07-06 09:49:14 UTC) #1
noyau (Ping after 24h)
Fixing an initialization issue.
8 years, 5 months ago (2012-07-09 13:44:03 UTC) #2
Miranda Callahan
Mostly a bunch of spelling nits, but one structural issue. https://chromiumcodereview.appspot.com/10690096/diff/11002/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://chromiumcodereview.appspot.com/10690096/diff/11002/chrome/browser/profiles/profile_impl.cc#newcode98 ...
8 years, 5 months ago (2012-07-09 14:24:30 UTC) #3
noyau (Ping after 24h)
Revamped a bit the delegate implementation. https://chromiumcodereview.appspot.com/10690096/diff/11002/chrome/browser/web_resource/json_asynchronous_unpacker.cc File chrome/browser/web_resource/json_asynchronous_unpacker.cc (right): https://chromiumcodereview.appspot.com/10690096/diff/11002/chrome/browser/web_resource/json_asynchronous_unpacker.cc#newcode10 chrome/browser/web_resource/json_asynchronous_unpacker.cc:10: #include "chrome/common/web_resource/web_resource_unpacker.h" On ...
8 years, 5 months ago (2012-07-09 15:23:56 UTC) #4
Miranda Callahan
LGTM with comment added. https://chromiumcodereview.appspot.com/10690096/diff/14001/chrome/browser/web_resource/web_resource_service.h File chrome/browser/web_resource/web_resource_service.h (right): https://chromiumcodereview.appspot.com/10690096/diff/14001/chrome/browser/web_resource/web_resource_service.h#newcode55 chrome/browser/web_resource/web_resource_service.h:55: virtual void Unpack(const base::DictionaryValue& parsed_json) ...
8 years, 5 months ago (2012-07-09 15:28:11 UTC) #5
noyau (Ping after 24h)
https://chromiumcodereview.appspot.com/10690096/diff/14001/chrome/browser/web_resource/web_resource_service.h File chrome/browser/web_resource/web_resource_service.h (right): https://chromiumcodereview.appspot.com/10690096/diff/14001/chrome/browser/web_resource/web_resource_service.h#newcode55 chrome/browser/web_resource/web_resource_service.h:55: virtual void Unpack(const base::DictionaryValue& parsed_json) = 0; On 2012/07/09 ...
8 years, 5 months ago (2012-07-09 15:41:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noyau@chromium.org/10690096/19002
8 years, 5 months ago (2012-07-09 15:42:29 UTC) #7
commit-bot: I haz the power
8 years, 5 months ago (2012-07-09 17:14:11 UTC) #8
Change committed as 145689

Powered by Google App Engine
This is Rietveld 408576698