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

Unified Diff: components/favicon/core/favicon_url.h

Issue 284183004: Create favicon_url mirror in components/favicon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes 2. Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/favicon/DEPS ('k') | components/favicon/core/favicon_url.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/favicon/core/favicon_url.h
diff --git a/components/favicon/core/favicon_url.h b/components/favicon/core/favicon_url.h
new file mode 100644
index 0000000000000000000000000000000000000000..991be6486f28337ee779f8d663ddbd4f75833f8e
--- /dev/null
+++ b/components/favicon/core/favicon_url.h
@@ -0,0 +1,36 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_FAVICON_CORE_FAVICON_URL_
+#define COMPONENTS_FAVICON_CORE_FAVICON_URL_
+
+#include <vector>
+
+#include "components/favicon_base/favicon_types.h"
+#include "ui/gfx/geometry/size.h"
+#include "url/gurl.h"
+
+namespace favicon {
+
+// Stores metadata about a given favicon.
+struct FaviconURL {
+ FaviconURL();
+ FaviconURL(const GURL& url,
+ favicon_base::IconType type,
+ const std::vector<gfx::Size>& sizes);
+ ~FaviconURL();
+
+ // The url of the icon.
+ GURL icon_url;
+
+ // The type of the icon.
+ favicon_base::IconType icon_type;
+
+ // Icon's bitmaps' size.
+ std::vector<gfx::Size> icon_sizes;
+};
+
+} // namespace favicon
+
+#endif // COMPONENTS_FAVICON_CORE_FAVICON_URL_
« no previous file with comments | « components/favicon/DEPS ('k') | components/favicon/core/favicon_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698