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

Side by Side Diff: ios/web/public/favicon_status.h

Issue 640253007: Adds additional fields to web::NavigationItem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « ios/web/ios_web.gyp ('k') | ios/web/public/favicon_status.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_FAVICON_STATUS_H_ 5 #ifndef IOS_WEB_PUBLIC_FAVICON_STATUS_H_
6 #define CONTENT_PUBLIC_BROWSER_FAVICON_STATUS_H_ 6 #define IOS_WEB_PUBLIC_FAVICON_STATUS_H_
7 7
8 #include "content/common/content_export.h"
9 #include "ui/gfx/image/image.h" 8 #include "ui/gfx/image/image.h"
10 #include "url/gurl.h" 9 #include "url/gurl.h"
11 10
12 namespace content { 11 namespace web {
13 12
14 // Collects the favicon related information for a NavigationEntry. 13 // Collects the favicon related information for a NavigationItem.
15 struct CONTENT_EXPORT FaviconStatus { 14 struct FaviconStatus {
16 FaviconStatus(); 15 FaviconStatus();
17 16
18 // Indicates whether we've gotten an official favicon for the page, or are 17 // Indicates whether we've gotten an official favicon for the page, or are
19 // just using the default favicon. 18 // just using the default favicon.
20 bool valid; 19 bool valid;
21 20
22 // The URL of the favicon which was used to load it off the web. 21 // The URL of the favicon which was used to load it off the web.
23 GURL url; 22 GURL url;
24 23
25 // The favicon bitmap for the page. If the favicon has not been explicitly 24 // 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 25 // 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 26 // 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. 27 // the default favicon if we haven't gotten the data yet.
29 gfx::Image image; 28 gfx::Image image;
30 29
31 // Copy and assignment is explicitly allowed for this struct. 30 // Copy and assignment is explicitly allowed for this struct.
32 }; 31 };
33 32
34 } // namespace content 33 } // namespace web
35 34
36 #endif // CONTENT_PUBLIC_BROWSER_FAVICON_STATUS_H_ 35 #endif // IOS_WEB_PUBLIC_FAVICON_STATUS_H_
OLDNEW
« no previous file with comments | « ios/web/ios_web.gyp ('k') | ios/web/public/favicon_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698