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

Issue 10694055: Add read-only access to POST data for webRequest's onBeforeRequest (Closed)

Created:
8 years, 5 months ago by vabr (Chromium)
Modified:
8 years, 3 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, satorux1
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

This adds read-only access to POST data for webRequest's onBeforeRequest listeners. browser_tests: ExtensionWebRequestApiTest.WebRequestPost; unit_tests: ExtensionWebRequestPostDataParserTest.Parsing, ExtensionWebRequestTest.AccessPostData TBR=jhawkins@chromium.org BUG=91191 TEST=Please follow the instructions from comment 23 on the BUG (http://code.google.com/p/chromium/issues/detail?id=91191#c23). Note that the feature only works for requests with an HTTP or HTTPS scheme in the URL. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156547

Patch Set 1 #

Total comments: 42

Patch Set 2 : Unit test extended + 1st round of review addressed #

Patch Set 3 : Documentation and a browsertest added #

Patch Set 4 : Deleting a forgotten comment #

Total comments: 76

Patch Set 5 : Parsers separated and review comments addressed #

Patch Set 6 : Minor fixes #

Patch Set 7 : Repairing ParseHead() #

Patch Set 8 : Initializing member variables with base types #

Patch Set 9 : Typo fixed #

Total comments: 36

Patch Set 10 : Comments addressed, unit tests split #

Total comments: 33

Patch Set 11 : Comments addressed #

Patch Set 12 : I will not tell language jokes to the compiler #

Patch Set 13 : Naming as "experimental" #

Patch Set 14 : Minor simplification in the unit-test #

Patch Set 15 : Trading ASSERT for CHECK + unused header removed #

Patch Set 16 : Re-uploading #

Patch Set 17 : Rejecting CHUNKS and BLOBS, adding formData #

Patch Set 18 : Rebased & added missing docs update #

Total comments: 3

Patch Set 19 : Adding an example value of formData to the docs #

Total comments: 10

Patch Set 20 : Matt's comments + minor correction on no parseable data #

Patch Set 21 : Remove what accidentally slipped in during rebasing #

Patch Set 22 : Matt's comments + error reporting for chunked + unit_test refactoring + browser_test correction #

Patch Set 23 : Trying to fix the android build #

Patch Set 24 : Corrected broken unit-tests #

Total comments: 1

Patch Set 25 : Missing header for strcasecmp #

Patch Set 26 : Wrong strcasecmp :) #

Total comments: 21

Patch Set 27 : #

Total comments: 4

Patch Set 28 : Forgot to take care of parser unittest #

Patch Set 29 : Adding the channel restriction #

Total comments: 3

Patch Set 30 : Now checking the channel for real #

Total comments: 31

Patch Set 31 : Matt's comments #

Patch Set 32 : Forgot to correct the browser test #

Patch Set 33 : Correcting InitFromValue unit-test #

Patch Set 34 : Further changes on channel selection + most of wtc's comments #

Patch Set 35 : Windows, what's your problem with scoped_ptr? #

Total comments: 97

Patch Set 36 : Comments from wtc and mpcomplete + raw POST and PUT support + change in 'details' structure #

Patch Set 37 : Rebased + some corrections #

Total comments: 40

Patch Set 38 : Comments from Aaron, Matt and Wan-teh, splitting parsers and (ex-)producers, test improvements... #

Patch Set 39 : Corrected the multipart parser + parsedForm->formData #

Total comments: 81

Patch Set 40 : Dominic's comments #

Total comments: 6

Patch Set 41 : Dominic's comments + adjusting to the recent move of UploadElement out of UploadData. #

Total comments: 6

Patch Set 42 : Removing support for TYPE_CHUNK after chunks were taken away #

Patch Set 43 : Kent's first comments #

Total comments: 21

Patch Set 44 : Rewritten parsers to use re2 #

Patch Set 45 : One more bug fixed, enum style corrected, strlen's removed, UTF8 restriction added to the docs #

Patch Set 46 : Making non-trivial data-members non-static #

Total comments: 1

Patch Set 47 : Unescaping field name + corresponding api tests enhanced #

Total comments: 2

Patch Set 48 : One more static RE2 object made non-static #

Total comments: 4

Patch Set 49 : Correcting method names pointed out by Kent #

Patch Set 50 : Introducing LazyInstance for "static" RE2 #

Total comments: 2

Patch Set 51 : Indents corrected + LazyInstance made Leaky #

Total comments: 46

Patch Set 52 : Dominic's comments #

Patch Set 53 : More comments from Dominic #

Total comments: 1

Patch Set 54 : Removing spaces before full-stops after function names in comments. #

Patch Set 55 : No change in code, but with a patch generated without copy detection #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2033 lines, -17 lines) Patch
A chrome/browser/extensions/api/web_request/form_data_parser.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 1 chunk +89 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/web_request/form_data_parser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 1 chunk +591 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/web_request/form_data_parser_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 1 chunk +146 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/web_request/upload_data_presenter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +115 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/web_request/upload_data_presenter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 1 chunk +152 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/web_request/upload_data_presenter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 1 chunk +63 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 8 chunks +59 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 8 chunks +274 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/web_request.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 3 chunks +42 lines, -1 line 0 comments Download
M chrome/common/extensions/api/web_request_internal.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/extensions/webRequest.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 4 chunks +193 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/webrequest/framework.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/webrequest/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +5 lines, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/webrequest/requestBody/multipart.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webrequest/requestBody/no-enctype.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webrequest/requestBody/plaintext.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webrequest/requestBody/submit.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 52 53 54 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webrequest/requestBody/urlencoded.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webrequest/test_post.html View 1 2 3 4 5 52 53 54 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webrequest/test_post.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 1 chunk +130 lines, -0 lines 0 comments Download

Messages

Total messages: 102 (0 generated)
vabr (Chromium)
Hi Dominic, Since I return to work first on Friday, I wanted to give you ...
8 years, 5 months ago (2012-07-02 17:05:22 UTC) #1
battre
Here is a first set of comments (I did not check the correctness of the ...
8 years, 5 months ago (2012-07-06 07:36:24 UTC) #2
vabr (Chromium)
Hi Dominic, I addressed most of your comments (thanks!), except for the two about initialization, ...
8 years, 5 months ago (2012-07-06 14:09:01 UTC) #3
Ryan Sleevi
Random drive by: Could you get someone familiar with the net/ stack (particularly net/http) to ...
8 years, 5 months ago (2012-07-08 01:39:07 UTC) #4
vabr (Chromium)
Ryan, Thanks for your comment. I'll make sure to have someone familiar with net/ take ...
8 years, 5 months ago (2012-07-09 15:41:10 UTC) #5
vabr (Chromium)
8 years, 5 months ago (2012-07-09 16:13:42 UTC) #6
battre
First comments on web_request_api.cc (did not look at the rest, yet) https://chromiumcodereview.appspot.com/10694055/diff/17019/chrome/browser/extensions/api/web_request/web_request_api.cc File chrome/browser/extensions/api/web_request/web_request_api.cc (right): ...
8 years, 5 months ago (2012-07-11 10:59:49 UTC) #7
battre
some more comments https://chromiumcodereview.appspot.com/10694055/diff/17019/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc File chrome/browser/extensions/api/web_request/web_request_api_unittest.cc (right): https://chromiumcodereview.appspot.com/10694055/diff/17019/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc#newcode83 chrome/browser/extensions/api/web_request/web_request_api_unittest.cc:83: }; nit: newline https://chromiumcodereview.appspot.com/10694055/diff/17019/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc#newcode84 chrome/browser/extensions/api/web_request/web_request_api_unittest.cc:84: TestMessageResult ...
8 years, 5 months ago (2012-07-11 12:28:43 UTC) #8
vabr (Chromium)
Hi Dominic, I addressed your comments and reorganized the code. Please have another look. Cheers, ...
8 years, 5 months ago (2012-07-12 15:13:11 UTC) #9
vabr (Chromium)
8 years, 5 months ago (2012-07-12 17:10:38 UTC) #10
vabr (Chromium)
Hi Dominic, Eventually I added the member value initialization for basic types, as I can ...
8 years, 5 months ago (2012-07-12 17:25:51 UTC) #11
battre
Great. I think we are almost there. http://codereview.chromium.org/10694055/diff/4043/chrome/browser/extensions/api/web_request/post_data_parser.cc File chrome/browser/extensions/api/web_request/post_data_parser.cc (right): http://codereview.chromium.org/10694055/diff/4043/chrome/browser/extensions/api/web_request/post_data_parser.cc#newcode90 chrome/browser/extensions/api/web_request/post_data_parser.cc:90: result->get_key() = ...
8 years, 5 months ago (2012-07-13 15:20:04 UTC) #12
vabr (Chromium)
Hi Dominic, Next round of changes. Please note that I accidentally rebased in between, but ...
8 years, 5 months ago (2012-07-16 15:40:51 UTC) #13
battre
looking good. I'll have a final pass on the final version. Have you looked for ...
8 years, 5 months ago (2012-07-16 17:39:45 UTC) #14
vabr (Chromium)
Hi Asanka, Do you think you could review this? The main code review is (being) ...
8 years, 5 months ago (2012-07-17 11:11:11 UTC) #15
battre
one final comment :-) http://codereview.chromium.org/10694055/diff/26001/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc File chrome/browser/extensions/api/web_request/web_request_api_unittest.cc (right): http://codereview.chromium.org/10694055/diff/26001/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc#newcode78 chrome/browser/extensions/api/web_request/web_request_api_unittest.cc:78: void GetPostData(IPC::Message* message, std::string* post_data, ...
8 years, 5 months ago (2012-07-17 12:46:07 UTC) #16
vabr (Chromium)
Dominic, Thanks for all your comments. Your most recent one has just been addressed. Vaclav ...
8 years, 5 months ago (2012-07-17 13:04:52 UTC) #17
battre
Please upload the CL again. The new web_request_api_unittest.cc is not accessible.
8 years, 5 months ago (2012-07-17 14:28:11 UTC) #18
vabr (Chromium)
Re-uploaded, now both files changed since #14 should be available. Sorry for that inconvenience. Vaclav
8 years, 5 months ago (2012-07-17 15:37:46 UTC) #19
asanka
On 2012/07/17 11:11:11, vabr (Chromium) wrote: > Hi Asanka, > > Do you think you ...
8 years, 5 months ago (2012-07-17 17:39:40 UTC) #20
satorux1
Chuncked encoding support in UploadData/UploadDataStream is a very dirty hack, so it's best to avoid ...
8 years, 5 months ago (2012-07-17 17:48:42 UTC) #21
vabr (Chromium)
Satoru-san, Thanks for your explanation. Could you please review my code from the networking perspective? ...
8 years, 5 months ago (2012-07-19 11:04:17 UTC) #22
battre
http://codereview.chromium.org/10694055/diff/51001/chrome/common/extensions/api/web_request.json File chrome/common/extensions/api/web_request.json (right): http://codereview.chromium.org/10694055/diff/51001/chrome/common/extensions/api/web_request.json#newcode119 chrome/common/extensions/api/web_request.json:119: "additionalProperties": { I don't understand this section
8 years, 5 months ago (2012-07-19 11:12:54 UTC) #23
vabr (Chromium)
Answering Dominic's comment. http://codereview.chromium.org/10694055/diff/51001/chrome/common/extensions/api/web_request.json File chrome/common/extensions/api/web_request.json (right): http://codereview.chromium.org/10694055/diff/51001/chrome/common/extensions/api/web_request.json#newcode119 chrome/common/extensions/api/web_request.json:119: "additionalProperties": { On 2012/07/19 11:12:54, battre ...
8 years, 5 months ago (2012-07-19 11:44:40 UTC) #24
vabr (Chromium)
Satoru-san, Do you think you could take a look at this from the networking perspective? ...
8 years, 5 months ago (2012-07-23 17:01:21 UTC) #25
satorux1
On 2012/07/23 17:01:21, vabr (Chromium) wrote: > Satoru-san, > > Do you think you could ...
8 years, 5 months ago (2012-07-23 17:07:31 UTC) #26
vabr (Chromium)
> Sorry for the belated response. I'm not a chrome networking guy. I was just ...
8 years, 5 months ago (2012-07-23 17:13:00 UTC) #27
satorux1
On 2012/07/23 17:13:00, vabr (Chromium) wrote: > > Sorry for the belated response. I'm not ...
8 years, 5 months ago (2012-07-23 17:18:14 UTC) #28
vabr (Chromium)
Hi Wan-Teh, Do you think you could review the networking part of this? I touch ...
8 years, 5 months ago (2012-07-23 17:23:31 UTC) #29
Ryan Sleevi
On 2012/07/23 17:23:31, vabr (Chromium) wrote: > Hi Wan-Teh, > > Do you think you ...
8 years, 5 months ago (2012-07-23 17:32:18 UTC) #30
Matt Perry
note: I did not review the PostDataParser This mostly looks good. Just a few comments ...
8 years, 5 months ago (2012-07-23 21:19:01 UTC) #31
wtc
On 2012/07/23 17:23:31, vabr (Chromium) wrote: > Hi Wan-Teh, > > Do you think you ...
8 years, 5 months ago (2012-07-23 23:54:30 UTC) #32
battre
http://codereview.chromium.org/10694055/diff/44028/chrome/common/extensions/api/web_request.json File chrome/common/extensions/api/web_request.json (right): http://codereview.chromium.org/10694055/diff/44028/chrome/common/extensions/api/web_request.json#newcode109 chrome/common/extensions/api/web_request.json:109: "experimentalPostData": { On 2012/07/23 21:19:01, Matt Perry wrote: > ...
8 years, 5 months ago (2012-07-24 09:28:52 UTC) #33
vabr (Chromium)
On 2012/07/23 23:54:30, wtc wrote: > On 2012/07/23 17:23:31, vabr (Chromium) wrote: > > Hi ...
8 years, 5 months ago (2012-07-24 15:45:06 UTC) #34
Matt Perry
http://codereview.chromium.org/10694055/diff/44028/chrome/common/extensions/api/web_request.json File chrome/common/extensions/api/web_request.json (right): http://codereview.chromium.org/10694055/diff/44028/chrome/common/extensions/api/web_request.json#newcode109 chrome/common/extensions/api/web_request.json:109: "experimentalPostData": { On 2012/07/24 09:28:53, battre wrote: > On ...
8 years, 5 months ago (2012-07-24 20:46:57 UTC) #35
vabr (Chromium)
On 2012/07/24 15:45:06, vabr (Chromium) wrote: > On 2012/07/23 23:54:30, wtc wrote: > > On ...
8 years, 5 months ago (2012-07-26 08:30:26 UTC) #36
vabr (Chromium)
Dear reviewers, thanks for your patience! Ryan, Thanks for your explanation. I can see the ...
8 years, 4 months ago (2012-07-30 16:05:57 UTC) #37
Matt Perry
the web_request stuff LGTM http://codereview.chromium.org/10694055/diff/64003/chrome/browser/extensions/api/web_request/post_data_parser.h File chrome/browser/extensions/api/web_request/post_data_parser.h (right): http://codereview.chromium.org/10694055/diff/64003/chrome/browser/extensions/api/web_request/post_data_parser.h#newcode32 chrome/browser/extensions/api/web_request/post_data_parser.h:32: const std::string& get_key() const { ...
8 years, 4 months ago (2012-07-30 16:14:15 UTC) #38
Ryan Sleevi
On Mon, Jul 30, 2012 at 9:05 AM, <vabr@chromium.org> wrote: > Dear reviewers, thanks for ...
8 years, 4 months ago (2012-07-30 16:40:56 UTC) #39
battre
Matt, should we disable the postData extraInfoSpec from channels other than DEV? http://codereview.chromium.org/10694055/diff/64003/chrome/browser/extensions/api/web_request/post_data_parser.cc File chrome/browser/extensions/api/web_request/post_data_parser.cc ...
8 years, 4 months ago (2012-07-30 17:54:25 UTC) #40
vabr (Chromium)
Matt and Dominic, I followed your comments mostly. Two exceptions: * We should clarify whether ...
8 years, 4 months ago (2012-07-31 09:03:18 UTC) #41
battre
http://codereview.chromium.org/10694055/diff/64003/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc File chrome/browser/extensions/api/web_request/web_request_api_unittest.cc (right): http://codereview.chromium.org/10694055/diff/64003/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc#newcode476 chrome/browser/extensions/api/web_request/web_request_api_unittest.cc:476: const char* bytes, size_t bytes_length) { On 2012/07/31 09:03:18, ...
8 years, 4 months ago (2012-07-31 09:14:01 UTC) #42
Matt Perry
http://codereview.chromium.org/10694055/diff/64003/chrome/browser/extensions/api/web_request/web_request_api.cc File chrome/browser/extensions/api/web_request/web_request_api.cc (right): http://codereview.chromium.org/10694055/diff/64003/chrome/browser/extensions/api/web_request/web_request_api.cc#newcode440 chrome/browser/extensions/api/web_request/web_request_api.cc:440: else if (str == "postData") On 2012/07/30 17:54:25, battre ...
8 years, 4 months ago (2012-07-31 09:14:12 UTC) #43
Matt Perry
http://codereview.chromium.org/10694055/diff/63027/chrome/browser/extensions/api/web_request/post_data_parser.cc File chrome/browser/extensions/api/web_request/post_data_parser.cc (right): http://codereview.chromium.org/10694055/diff/63027/chrome/browser/extensions/api/web_request/post_data_parser.cc#newcode41 chrome/browser/extensions/api/web_request/post_data_parser.cc:41: key_.replace(0, std::string::npos, str.data(), str.size()); can also do: key_ = ...
8 years, 4 months ago (2012-07-31 09:32:14 UTC) #44
vabr (Chromium)
Thanks, Matt and Dominic. One comment and one thing to discuss. No code change since ...
8 years, 4 months ago (2012-07-31 12:17:58 UTC) #45
Matt Perry
Regarding the version check, I'd say cache the version check locally, but still do it ...
8 years, 4 months ago (2012-07-31 12:24:27 UTC) #46
vabr (Chromium)
Matt, Dominic, It looks we agree on doing the channel check in run-time, with local ...
8 years, 4 months ago (2012-07-31 12:55:27 UTC) #47
Matt Perry
On 2012/07/31 12:55:27, vabr (Chromium) wrote: > Matt, Dominic, > > It looks we agree ...
8 years, 4 months ago (2012-07-31 13:02:15 UTC) #48
vabr (Chromium)
Matt, Dominic, Now the channel is checked. I also modified the unit_test so that extraInfoSpec ...
8 years, 4 months ago (2012-07-31 16:15:41 UTC) #49
vabr (Chromium)
On 2012/07/31 16:15:41, vabr (Chromium) wrote: > Matt, Dominic, > > Now the channel is ...
8 years, 4 months ago (2012-07-31 17:47:21 UTC) #50
Matt Perry
http://codereview.chromium.org/10694055/diff/60013/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc File chrome/browser/extensions/api/web_request/web_request_api_unittest.cc (right): http://codereview.chromium.org/10694055/diff/60013/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc#newcode611 chrome/browser/extensions/api/web_request/web_request_api_unittest.cc:611: const bool anything_expected = IsPostDataEnabled() && On 2012/07/31 16:15:42, ...
8 years, 4 months ago (2012-08-01 09:46:31 UTC) #51
wtc
Review comments on patch set 30: vabr: sorry about the late review. I didn't have ...
8 years, 4 months ago (2012-08-01 17:24:40 UTC) #52
vabr (Chromium)
wtc@, many thanks for your comments, both the in-line and the high level ones! Now ...
8 years, 4 months ago (2012-08-01 18:03:21 UTC) #53
vabr (Chromium)
In this round: Matt, please take a look at my responses. I also responded to ...
8 years, 4 months ago (2012-08-02 09:15:15 UTC) #54
Matt Perry
wtc brings up a good point on unstructured POST data. Do we want to support ...
8 years, 4 months ago (2012-08-02 10:11:03 UTC) #55
wtc
http://codereview.chromium.org/10694055/diff/62031/chrome/browser/extensions/api/web_request/web_request_api.cc File chrome/browser/extensions/api/web_request/web_request_api.cc (right): http://codereview.chromium.org/10694055/diff/62031/chrome/browser/extensions/api/web_request/web_request_api.cc#newcode441 chrome/browser/extensions/api/web_request/web_request_api.cc:441: *extra_info_spec |= (IsPostDataEnabled()) ? POST_DATA : 0; On 2012/08/02 ...
8 years, 4 months ago (2012-08-02 21:58:49 UTC) #56
wtc
Review comments on patch set 35: I reviewed post_data_parser.{h,cc}, but I ran out of steam ...
8 years, 4 months ago (2012-08-03 00:57:19 UTC) #57
wtc
vabr: I searched for files with "form_data" or "FormData" in their names in the Chromium ...
8 years, 4 months ago (2012-08-03 01:17:01 UTC) #58
vabr (Chromium)
Dominic, Matt and Wan-Teh, Thanks to all of you for careful reviews. I don't think ...
8 years, 4 months ago (2012-08-03 12:51:47 UTC) #59
vabr (Chromium)
Dominic, Matt and Wan-Teh, Summary here, personal notes below: A major change in this patch-set ...
8 years, 4 months ago (2012-08-05 18:54:46 UTC) #60
Aaron Boodman
http://codereview.chromium.org/10694055/diff/62130/chrome/common/extensions/api/web_request.json File chrome/common/extensions/api/web_request.json (right): http://codereview.chromium.org/10694055/diff/62130/chrome/common/extensions/api/web_request.json#newcode114 chrome/common/extensions/api/web_request.json:114: "error": {"type": "string", "optional": true, "description": "Errors when obtaining ...
8 years, 4 months ago (2012-08-06 03:56:49 UTC) #61
Matt Perry
http://codereview.chromium.org/10694055/diff/75041/chrome/browser/extensions/api/web_request/post_data_parser.cc File chrome/browser/extensions/api/web_request/post_data_parser.cc (right): http://codereview.chromium.org/10694055/diff/75041/chrome/browser/extensions/api/web_request/post_data_parser.cc#newcode54 chrome/browser/extensions/api/web_request/post_data_parser.cc:54: } On 2012/08/05 18:54:46, vabr (Chromium) wrote: > On ...
8 years, 4 months ago (2012-08-06 21:06:45 UTC) #62
wtc
vabr: sorry about the late review. I was at a conference on Tuesday and Wednesday. ...
8 years, 4 months ago (2012-08-09 22:02:50 UTC) #63
wtc
Patch set 37 LGTM. I only reviewed post_data_parser.{h,cc} this time. Please make sure all the ...
8 years, 4 months ago (2012-08-09 23:39:40 UTC) #64
vabr (Chromium)
Dear reviewers, (Those of you no longer involved but still spammed by this long-living CL, ...
8 years, 4 months ago (2012-08-10 17:12:55 UTC) #65
Aaron Boodman
I can't review (c) because I'm not that familiar with webrequest, but I'm happy with ...
8 years, 4 months ago (2012-08-10 21:47:12 UTC) #66
Aaron Boodman
(except that I still prefer formData rather than parsedForm. I think what irritates me about ...
8 years, 4 months ago (2012-08-10 21:48:03 UTC) #67
vabr (Chromium)
Hi Jian, Do you think you could review my parsers for multipart-encoded and URLencoded HTML ...
8 years, 4 months ago (2012-08-14 19:50:18 UTC) #68
vabr (Chromium)
On 2012/08/14 19:50:18, vabr (Chromium) wrote: > Hi Jian, > > Do you think you ...
8 years, 4 months ago (2012-08-14 19:54:10 UTC) #69
Matt Perry
C+D LGTM
8 years, 4 months ago (2012-08-15 21:40:20 UTC) #70
vabr (Chromium)
Thanks, Matt. So it remains to review upload_data_presenter* (Dominic?) and form_data_parser* (Jian Li?). Some more ...
8 years, 4 months ago (2012-08-16 08:00:59 UTC) #71
jianli
On Thu, Aug 16, 2012 at 1:00 AM, <vabr@chromium.org> wrote: > Thanks, Matt. > > ...
8 years, 4 months ago (2012-08-16 17:20:09 UTC) #72
battre
I did not look into form_data_parser*.* very deeply. http://codereview.chromium.org/10694055/diff/56038/chrome/browser/extensions/api/web_request/form_data_parser.cc File chrome/browser/extensions/api/web_request/form_data_parser.cc (right): http://codereview.chromium.org/10694055/diff/56038/chrome/browser/extensions/api/web_request/form_data_parser.cc#newcode318 chrome/browser/extensions/api/web_request/form_data_parser.cc:318: while ...
8 years, 4 months ago (2012-08-16 19:18:03 UTC) #73
vabr (Chromium)
Hi Jian, To explain: for reviewing the three form_data_parser* files I tried to find a ...
8 years, 4 months ago (2012-08-17 18:29:57 UTC) #74
battre
http://codereview.chromium.org/10694055/diff/56038/chrome/browser/extensions/api/web_request/upload_data_presenter.cc File chrome/browser/extensions/api/web_request/upload_data_presenter.cc (right): http://codereview.chromium.org/10694055/diff/56038/chrome/browser/extensions/api/web_request/upload_data_presenter.cc#newcode55 chrome/browser/extensions/api/web_request/upload_data_presenter.cc:55: net::HttpRequestHeaders::kTransferEncoding, &transfer_encoding)) On 2012/08/17 18:29:57, vabr (Chromium) wrote: > ...
8 years, 4 months ago (2012-08-20 12:09:38 UTC) #75
jianli
tkent might be more appropriate to review HTML forms related stuffs. On Fri, Aug 17, ...
8 years, 4 months ago (2012-08-20 16:53:43 UTC) #76
vabr (Chromium)
Hi Kent, I am seeking somebody knowledgeable in how HTML forms are encoded on uploading ...
8 years, 4 months ago (2012-08-23 15:41:53 UTC) #77
tkent
Ok. I'll take a look at them on Monday or Tuesday.
8 years, 4 months ago (2012-08-24 14:25:41 UTC) #78
tkent
satorux might be interested in MIME parsing. http://codereview.chromium.org/10694055/diff/83001/chrome/browser/extensions/api/web_request/form_data_parser.cc File chrome/browser/extensions/api/web_request/form_data_parser.cc (right): http://codereview.chromium.org/10694055/diff/83001/chrome/browser/extensions/api/web_request/form_data_parser.cc#newcode70 chrome/browser/extensions/api/web_request/form_data_parser.cc:70: // Other ...
8 years, 4 months ago (2012-08-24 14:26:49 UTC) #79
vabr (Chromium)
Kent, Thank you very much. It would be great if you could take a look. ...
8 years, 4 months ago (2012-08-24 16:16:59 UTC) #80
tkent
http://codereview.chromium.org/10694055/diff/83004/chrome/browser/extensions/api/web_request/form_data_parser.cc File chrome/browser/extensions/api/web_request/form_data_parser.cc (right): http://codereview.chromium.org/10694055/diff/83004/chrome/browser/extensions/api/web_request/form_data_parser.cc#newcode54 chrome/browser/extensions/api/web_request/form_data_parser.cc:54: // encoding) and 822 (MIME-headers). Please do not refer ...
8 years, 3 months ago (2012-08-27 07:09:16 UTC) #81
vabr (Chromium)
Hi Kent, Thanks for your comments. I realised that the parser code is unnecessary low-level ...
8 years, 3 months ago (2012-08-29 19:57:07 UTC) #82
tkent
> > Need to decode the name value. > > If both the page encoding ...
8 years, 3 months ago (2012-08-30 04:38:20 UTC) #83
vabr (Chromium)
http://codereview.chromium.org/10694055/diff/96004/chrome/browser/extensions/api/web_request/form_data_parser.cc File chrome/browser/extensions/api/web_request/form_data_parser.cc (right): http://codereview.chromium.org/10694055/diff/96004/chrome/browser/extensions/api/web_request/form_data_parser.cc#newcode309 chrome/browser/extensions/api/web_request/form_data_parser.cc:309: static const RE2 unquote_pattern(escape_closing_quote); Note to myself -- make ...
8 years, 3 months ago (2012-08-30 12:26:48 UTC) #84
M-A Ruel
Warning: do not trust the try job results on patchset 46: many are green but ...
8 years, 3 months ago (2012-09-02 18:57:20 UTC) #85
vabr (Chromium)
Kent, I added more tests for non-ASCII characters in field names (and values). At that ...
8 years, 3 months ago (2012-09-03 09:55:30 UTC) #86
tkent
lgtm http://codereview.chromium.org/10694055/diff/106003/chrome/browser/extensions/api/web_request/form_data_parser.cc File chrome/browser/extensions/api/web_request/form_data_parser.cc (right): http://codereview.chromium.org/10694055/diff/106003/chrome/browser/extensions/api/web_request/form_data_parser.cc#newcode306 chrome/browser/extensions/api/web_request/form_data_parser.cc:306: std::string FormDataParserMultipart::GetDashBoundaryPattern( nit: The function name doesn't represent ...
8 years, 3 months ago (2012-09-04 07:43:53 UTC) #87
vabr (Chromium)
Dominic, Now that the parsers are reviewed (thanks Kent!), each part of this CL has ...
8 years, 3 months ago (2012-09-04 11:45:24 UTC) #88
Matt Perry
small nit http://codereview.chromium.org/10694055/diff/107004/chrome/common/extensions/api/web_request.json File chrome/common/extensions/api/web_request.json (right): http://codereview.chromium.org/10694055/diff/107004/chrome/common/extensions/api/web_request.json#newcode96 chrome/common/extensions/api/web_request.json:96: "type": "any", indent should be +2 not ...
8 years, 3 months ago (2012-09-05 21:01:55 UTC) #89
vabr (Chromium)
Dominic, This should be short -- based on your suggestion I changed the LazyInstance to ...
8 years, 3 months ago (2012-09-07 11:23:34 UTC) #90
battre
Sorry, a couple of more comments. http://codereview.chromium.org/10694055/diff/108008/chrome/browser/extensions/api/web_request/form_data_parser.cc File chrome/browser/extensions/api/web_request/form_data_parser.cc (right): http://codereview.chromium.org/10694055/diff/108008/chrome/browser/extensions/api/web_request/form_data_parser.cc#newcode35 chrome/browser/extensions/api/web_request/form_data_parser.cc:35: const RE2 transfer_padding_pattern_; ...
8 years, 3 months ago (2012-09-09 22:08:35 UTC) #91
vabr (Chromium)
Dominic, Thanks for your never-ending enthusiasm for reading this monster! I really appreciate your comments. ...
8 years, 3 months ago (2012-09-12 11:18:08 UTC) #92
vabr (Chromium)
Dominic, Thanks for clarifying the rest comments with me. I removed the static class around ...
8 years, 3 months ago (2012-09-12 12:53:09 UTC) #93
battre
LGTM, thanks for your patience. http://codereview.chromium.org/10694055/diff/105032/chrome/browser/extensions/api/web_request/form_data_parser.cc File chrome/browser/extensions/api/web_request/form_data_parser.cc (right): http://codereview.chromium.org/10694055/diff/105032/chrome/browser/extensions/api/web_request/form_data_parser.cc#newcode278 chrome/browser/extensions/api/web_request/form_data_parser.cc:278: // Caching the pointer ...
8 years, 3 months ago (2012-09-12 18:08:40 UTC) #94
vabr (Chromium)
Thanks Dominic, (and all other brave reviewers of this CL! *) Nit addressed, sending to ...
8 years, 3 months ago (2012-09-13 08:01:42 UTC) #95
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/10694055/120002
8 years, 3 months ago (2012-09-13 08:02:29 UTC) #96
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/10694055/120002
8 years, 3 months ago (2012-09-13 10:20:02 UTC) #97
commit-bot: I haz the power
Retried try job too often for step(s)
8 years, 3 months ago (2012-09-13 11:00:22 UTC) #98
M-A Ruel
On 2012/09/13 11:00:22, I haz the power (commit-bot) wrote: > Retried try job too often ...
8 years, 3 months ago (2012-09-13 11:13:14 UTC) #99
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/10694055/108014
8 years, 3 months ago (2012-09-13 12:48:26 UTC) #100
vabr (Chromium)
On 2012/09/13 12:48:26, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
8 years, 3 months ago (2012-09-13 12:58:22 UTC) #101
commit-bot: I haz the power
8 years, 3 months ago (2012-09-13 14:51:52 UTC) #102
Change committed as 156547

Powered by Google App Engine
This is Rietveld 408576698