Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / public / browser / favicon_status.h
blob7bd9328749d2b7a6ee93c748dbb95e9a9609391d
1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_FAVICON_STATUS_H_
6 #define CONTENT_PUBLIC_BROWSER_FAVICON_STATUS_H_
8 #include "content/common/content_export.h"
9 #include "ui/gfx/image/image.h"
10 #include "url/gurl.h"
12 namespace content {
14 // Collects the favicon related information for a NavigationEntry.
15 struct CONTENT_EXPORT FaviconStatus {
16 FaviconStatus();
18 // Indicates whether we've gotten an official favicon for the page, or are
19 // just using the default favicon.
20 bool valid;
22 // The URL of the favicon which was used to load it off the web.
23 GURL url;
25 // The favicon bitmap for the page. If the favicon has not been explicitly
26 // set or it empty, it will return the default favicon. Note that this is
27 // loaded asynchronously, so even if the favicon URL is valid we may return
28 // the default favicon if we haven't gotten the data yet.
29 gfx::Image image;
31 // Copy and assignment is explicitly allowed for this struct.
34 } // namespace content
36 #endif // CONTENT_PUBLIC_BROWSER_FAVICON_STATUS_H_