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

Issue 15010: Implement extension:// protocol. (Closed)

Created:
12 years ago by Aaron Boodman
Modified:
7 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Implement extension:// protocol.

Patch Set 1 #

Patch Set 2 : Fix some minor things #

Total comments: 29

Patch Set 3 : Changes per Erik and Darin review feedback #

Patch Set 4 : Remove extraneous include from url_request_context.h #

Patch Set 5 : Make extension protocol chrome-extension:// instead of extension:// #

Total comments: 3

Patch Set 6 : Add forgotten unit tests, rename url_request_job_extension -> extension_protocol #

Patch Set 7 : add missing unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+528 lines, -329 lines) Patch
M chrome/browser/automation/url_request_mock_http_job.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/automation/url_request_mock_http_job.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/automation/url_request_mock_net_error_job.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/automation/url_request_mock_net_error_job.cc View 1 chunk +9 lines, -10 lines 0 comments Download
M chrome/browser/browser.vcproj View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/browser_main.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/chrome_url_data_manager.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension.h View 1 2 3 chunks +14 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_protocol.h View 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_protocol.cc View 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_protocol_unittest.cc View 1 chunk +37 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 1 2 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/greasemonkey_master.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/greasemonkey_master_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A chrome/browser/net/chrome_url_request_context.h View 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/browser/net/chrome_url_request_context.cc View 1 chunk +211 lines, -0 lines 0 comments Download
M chrome/browser/profile.h View 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/profile.cc View 1 2 7 chunks +28 lines, -276 lines 0 comments Download
M chrome/browser/render_process_host.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/notification_types.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M chrome/test/unit/unittests.vcproj View 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M net/url_request/url_request_context.h View 1 2 3 3 chunks +1 line, -6 lines 0 comments Download
M net/url_request/url_request_file_job.h View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_file_job.cc View 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M webkit/tools/test_shell/test_shell.cc View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Aaron Boodman
12 years ago (2008-12-17 22:56:03 UTC) #1
Erik does not do reviews
LGTM All of my comments are minor style / comment nits. http://codereview.chromium.org/15010/diff/201/26 File chrome/browser/extensions/url_request_job_extension.cc (right): ...
12 years ago (2008-12-18 00:54:51 UTC) #2
darin (slow to review)
http://codereview.chromium.org/15010/diff/201/23 File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/15010/diff/201/23#newcode405 Line 405: // Register our global network handler for chrome:// ...
12 years ago (2008-12-18 08:39:47 UTC) #3
Aaron Boodman
Ready for another look. Note that this relies on http://codereview.chromium.org/16408, but they should be separately ...
12 years ago (2008-12-22 11:47:09 UTC) #4
Erik does not do reviews
12 years ago (2008-12-22 17:11:05 UTC) #5
LGTM

http://codereview.chromium.org/15010/diff/451/630
File chrome/browser/dom_ui/chrome_url_data_manager.cc (right):

http://codereview.chromium.org/15010/diff/451/630#newcode246
Line 246: if (ChromeURLDataManager::URLToFilePath(request->url(), &path))
Could you add a variation for URLToFilePath to have a FilePath arg?

http://codereview.chromium.org/15010/diff/451/634
File chrome/browser/extensions/url_request_job_extension.h (right):

http://codereview.chromium.org/15010/diff/451/634#newcode11
Line 11: const std::string& resource_path);
Rename resource_path to be url_path and adjust the comment so that it's clear
why it's not a FilePath itself.

http://codereview.chromium.org/15010/diff/451/637
File chrome/browser/net/chrome_request_context.cc (right):

http://codereview.chromium.org/15010/diff/451/637#newcode118
Line 118: // NotificationObserver implementation.
remove leading whitespace

Powered by Google App Engine
This is Rietveld 408576698