OLD | NEW |
(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_ |
OLD | NEW |