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

Issue 10831150: Refactor request parameters into RequestData struct. Also make RequestStage singular. (Closed)

Created:
8 years, 4 months ago by Yoyo Zhou
Modified:
8 years, 4 months ago
Reviewers:
battre
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Refactor request parameters into RequestData struct. Also make RequestStage singular. This simplifies (eventually) passing the optional parameters into WebRequestCondition. BUG=112155 TBR=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149854

Patch Set 1 #

Patch Set 2 : , #

Patch Set 3 : ; #

Total comments: 3

Patch Set 4 : // #

Patch Set 5 : no null #

Patch Set 6 : rebase #

Patch Set 7 : ?? #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -240 lines) Patch
A + chrome/browser/extensions/api/declarative_webrequest/request_stage.h View 2 chunks +4 lines, -6 lines 0 comments Download
D chrome/browser/extensions/api/declarative_webrequest/request_stages.h View 1 chunk +0 lines, -29 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_action.h View 1 2 3 4 5 16 chunks +20 lines, -48 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_action.cc View 1 2 3 4 5 15 chunks +36 lines, -63 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_action_unittest.cc View 1 chunk +8 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_condition.h View 1 3 3 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_condition.cc View 3 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.h View 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_unittest.cc View 1 2 5 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_rule.h View 1 3 3 chunks +16 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_rule.cc View 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry.h View 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry.cc View 4 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc View 1 2 3 4 5 chunks +13 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Yoyo Zhou
Hi Dominic, I am not sure whether WebRequestRule is the best place to keep this ...
8 years, 4 months ago (2012-08-03 09:43:35 UTC) #1
battre
lgtm https://chromiumcodereview.appspot.com/10831150/diff/7021/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc File chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc (right): https://chromiumcodereview.appspot.com/10831150/diff/7021/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc#newcode346 chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc:346: WebRequestRule::RequestData(&request, ON_BEFORE_REQUEST, NULL), nit: no need to pass ...
8 years, 4 months ago (2012-08-03 10:06:43 UTC) #2
battre
Oh, there is currently a CL in the commit queue that will require some more ...
8 years, 4 months ago (2012-08-03 10:08:06 UTC) #3
Yoyo Zhou
Thanks for the heads-up. I'll rebase on that after it lands. https://chromiumcodereview.appspot.com/10831150/diff/7021/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc File chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc (right): ...
8 years, 4 months ago (2012-08-03 10:12:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/10831150/23
8 years, 4 months ago (2012-08-03 12:17:17 UTC) #5
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/api/declarative_webrequest/webrequest_action.cc: While running patch -p1 --forward --force; patching file chrome/browser/extensions/api/declarative_webrequest/webrequest_action.cc ...
8 years, 4 months ago (2012-08-03 12:22:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/10831150/2005
8 years, 4 months ago (2012-08-03 12:44:56 UTC) #7
commit-bot: I haz the power
8 years, 4 months ago (2012-08-03 14:44:58 UTC) #8
Change committed as 149854

Powered by Google App Engine
This is Rietveld 408576698