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

Side by Side Diff: chrome/common/favicon/fallback_icon_url_parser.h

Issue 835903005: [Favicon] Add new fallback icon rendering flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding new host chrome://fallback-icon. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_FAVICON_FALLBACK_ICON_URL_PARSER_H_
6 #define CHROME_COMMON_FAVICON_FALLBACK_ICON_URL_PARSER_H_
7
8 #include <string>
9
10 #include "components/favicon_base/fallback_icon_style_builder.h"
11
12 namespace chrome {
13
14 struct ParsedFallbackIconPath {
15 // The URL from which the fallback icon is being requested.
16 std::string url;
17
18 // The size of the requested fallback icon in dip.
19 int size_in_dip;
20
21 // The device scale factor of the requested fallback icon.
22 float device_scale_factor;
23
24 // Specifications of fallback icon. This is nullptr if no fallback.
25 favicon_base::FallbackIconStyleBuilder style_builder;
26 };
27
28 // Parses |path|,which should be in the format described at the top of the
29 // file "chrome/browser/ui/webui/fallback_icon_source.h".
30 bool ParseFallbackIconPath(const std::string& path,
31 ParsedFallbackIconPath* parsed);
32
33 } // namespace chrome
34
35 #endif // CHROME_COMMON_FAVICON_FALLBACK_ICON_URL_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698