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

Issue 696543003: Mojo content handler shebang support (Closed)

Created:
6 years, 1 month ago by hansmuller
Modified:
6 years, 1 month ago
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Mojo content handler shebang support If an application's content begins with #!mojo:content-handler-url, use the specified content-handler and skip the whole "shebang". BUG=426899 R=aa@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/eb1a5f99c88eddc67c1951059c18cbc2363a434c

Patch Set 1 #

Total comments: 43

Patch Set 2 : Added some basic unit tests for the Peek functions. #

Patch Set 3 : Fixed the formatting problems, used the loop, kept the newline #

Patch Set 4 : refactored BlockingPeekHelper et al #

Total comments: 4

Patch Set 5 : Relocated data pipe peek utilities, added basic content-handler detection #

Total comments: 10

Patch Set 6 : For now, we'll block waiting for 7 characters (#!mojo: or not) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+582 lines, -6 lines) Patch
M mojo/common/data_pipe_utils.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M mojo/common/data_pipe_utils.cc View 1 2 3 2 chunks +130 lines, -0 lines 0 comments Download
A mojo/common/data_pipe_utils_unittest.cc View 1 2 3 4 1 chunk +109 lines, -0 lines 0 comments Download
M mojo/shell/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A mojo/shell/data_pipe_peek.h View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download
A mojo/shell/data_pipe_peek.cc View 1 2 3 4 1 chunk +152 lines, -0 lines 0 comments Download
A mojo/shell/data_pipe_peek_unittest.cc View 1 2 3 4 1 chunk +108 lines, -0 lines 0 comments Download
M mojo/shell/dynamic_application_loader.cc View 1 2 3 4 5 5 chunks +44 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
hansmuller
PTAL.
6 years, 1 month ago (2014-10-31 00:06:14 UTC) #2
viettrungluu
https://codereview.chromium.org/696543003/diff/1/mojo/common/data_pipe_utils.cc File mojo/common/data_pipe_utils.cc (right): https://codereview.chromium.org/696543003/diff/1/mojo/common/data_pipe_utils.cc#newcode70 mojo/common/data_pipe_utils.cc:70: // that there's no point in trying again. Please ...
6 years, 1 month ago (2014-10-31 23:30:23 UTC) #3
hansmuller
I've made all of the suggested changes save one. This is just a checkpoint. https://codereview.chromium.org/696543003/diff/1/mojo/common/data_pipe_utils.cc ...
6 years, 1 month ago (2014-11-01 00:06:05 UTC) #4
hansmuller
I've made all of the suggested changes, including refactoring BlockingPeekHelper. PTAL.
6 years, 1 month ago (2014-11-03 16:34:55 UTC) #5
viettrungluu
https://codereview.chromium.org/696543003/diff/1/mojo/common/data_pipe_utils.cc File mojo/common/data_pipe_utils.cc (right): https://codereview.chromium.org/696543003/diff/1/mojo/common/data_pipe_utils.cc#newcode122 mojo/common/data_pipe_utils.cc:122: while(result == MOJO_RESULT_OK) { On 2014/10/31 23:30:23, viettrungluu wrote: ...
6 years, 1 month ago (2014-11-03 18:36:56 UTC) #6
hansmuller
I moved the data pipe peek support from the mojo:common to mojo:shell, since the code ...
6 years, 1 month ago (2014-11-03 23:24:25 UTC) #8
Aaron Boodman
https://codereview.chromium.org/696543003/diff/80001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/696543003/diff/80001/mojo/shell/dynamic_application_loader.cc#newcode166 mojo/shell/dynamic_application_loader.cc:166: const std::string kMojoMagic("#!mojo:"); No real reason to make this ...
6 years, 1 month ago (2014-11-03 23:50:37 UTC) #9
hansmuller
Thanks for looking at this. I've made the suggested changes. https://codereview.chromium.org/696543003/diff/80001/mojo/shell/dynamic_application_loader.cc File mojo/shell/dynamic_application_loader.cc (right): https://codereview.chromium.org/696543003/diff/80001/mojo/shell/dynamic_application_loader.cc#newcode166 ...
6 years, 1 month ago (2014-11-04 00:26:03 UTC) #10
Aaron Boodman
lgtm
6 years, 1 month ago (2014-11-04 00:27:21 UTC) #11
hansmuller
6 years, 1 month ago (2014-11-04 00:59:09 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
eb1a5f99c88eddc67c1951059c18cbc2363a434c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698