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

Issue 3324009: Work in progress implementation of Icon URI scheme. (Closed)

Created:
10 years, 3 months ago by pierre.lafayette
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org, brettw-cc_chromium.org
Base URL:
git://git.chromium.org/chromium.git
Visibility:
Public.

Description

Work in progress implementation of Icon URI scheme. Submitting to get feedback and direction for the implementation as well as insight on the future of the Icon URI scheme (http://tools.ietf.org/html/draft-lafayette-icon-uri-scheme). The draft currently has provisional registration and will expire at the end of the year. Current implementation only supports the 3 IconLoader::IconSizes. Only can load icons by file extension; media type and keyword resolution not yet supported. The design is based on that of ChromeURLDataManager where we have the URLRequestJob, DataSource and the DataManager. There is definitely some opportunity to refactor out some of the common code in ChromeURLDataManager and IconURLDataManager. An IconURI class has been added to parse icon URIs in accordance to the draft. See screenshot of test page here: http://goo.gl/gk8d BUG=54650 TEST=icon_url_data_manager_unittest.cc

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+641 lines, -0 lines) Patch
M chrome/browser/browser_main.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/child_process_security_policy.cc View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/icon_url_data_manager.h View 1 chunk +185 lines, -0 lines 0 comments Download
A chrome/browser/icon_url_data_manager.cc View 1 chunk +380 lines, -0 lines 0 comments Download
A chrome/browser/icon_url_data_manager_unittest.cc View 1 chunk +69 lines, -0 lines 1 comment Download
M chrome/common/url_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
pierre.lafayette
Any comments on the implementation or the draft itself would be very helpful :) Been ...
10 years, 3 months ago (2010-09-07 02:51:34 UTC) #1
brettw
Darin just commented on the bug. I'm also a bit concerned about adding this and ...
10 years, 3 months ago (2010-09-07 16:57:21 UTC) #2
pierre.lafayette
On 2010/09/07 16:57:21, brettw wrote: > Darin just commented on the bug. I'm also a ...
10 years, 3 months ago (2010-09-07 17:10:20 UTC) #3
pierre.lafayette
I'm going to close this based on the feedback I've been getting here and on ...
10 years, 3 months ago (2010-09-07 20:29:39 UTC) #4
Paweł Hajdan Jr.
10 years, 3 months ago (2010-09-08 17:51:44 UTC) #5
Drive-by with a test comment.

http://codereview.chromium.org/3324009/diff/1/6
File chrome/browser/icon_url_data_manager_unittest.cc (right):

http://codereview.chromium.org/3324009/diff/1/6#newcode42
chrome/browser/icon_url_data_manager_unittest.cc:42: for (size_t i = 0; i <
ARRAYSIZE_UNSAFE(passingTests); ++i) {
Please use SCOPED_TRACE in the loops (here and below) to make the error messages
more clear.

Powered by Google App Engine
This is Rietveld 408576698