Add ICU message format support
[chromium-blink-merge.git] / ios / web / public / favicon_status.h
blobe919f833518784f807752853d2eab31e48b4e58b
1 // Copyright 2014 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.
5 #ifndef IOS_WEB_PUBLIC_FAVICON_STATUS_H_
6 #define IOS_WEB_PUBLIC_FAVICON_STATUS_H_
8 #include "ui/gfx/image/image.h"
9 #include "url/gurl.h"
11 namespace web {
13 // Collects the favicon related information for a NavigationItem.
14 struct FaviconStatus {
15 FaviconStatus();
17 // Indicates whether we've gotten an official favicon for the page, or are
18 // just using the default favicon.
19 bool valid;
21 // The URL of the favicon which was used to load it off the web.
22 GURL url;
24 // The favicon bitmap for the page. If the favicon has not been explicitly
25 // set or it empty, it will return the default favicon. Note that this is
26 // loaded asynchronously, so even if the favicon URL is valid we may return
27 // the default favicon if we haven't gotten the data yet.
28 gfx::Image image;
30 // Copy and assignment is explicitly allowed for this struct.
33 } // namespace web
35 #endif // IOS_WEB_PUBLIC_FAVICON_STATUS_H_