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

Side by Side Diff: components/favicon/core/favicon_url.h

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2014 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 COMPONENTS_FAVICON_CORE_FAVICON_URL_ 5 #ifndef COMPONENTS_FAVICON_CORE_FAVICON_URL_
6 #define COMPONENTS_FAVICON_CORE_FAVICON_URL_ 6 #define COMPONENTS_FAVICON_CORE_FAVICON_URL_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "components/favicon_base/favicon_types.h" 10 #include "components/favicon_base/favicon_types.h"
11 #include "ui/gfx/geometry/size.h" 11 #include "ui/gfx/geometry/size.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace favicon { 14 namespace favicon {
15 15
16 // Stores metadata about a given favicon. 16 // Stores metadata about a given favicon.
17 struct FaviconURL { 17 struct FaviconURL {
18 FaviconURL(); 18 FaviconURL();
19 FaviconURL(const GURL& url, 19 FaviconURL(const GURL& url,
20 favicon_base::IconType type, 20 favicon_base::IconType type,
21 const std::vector<gfx::Size>& sizes); 21 const std::vector<gfx::Size>& sizes);
22 FaviconURL(const FaviconURL& other);
22 ~FaviconURL(); 23 ~FaviconURL();
23 24
24 // The url of the icon. 25 // The url of the icon.
25 GURL icon_url; 26 GURL icon_url;
26 27
27 // The type of the icon. 28 // The type of the icon.
28 favicon_base::IconType icon_type; 29 favicon_base::IconType icon_type;
29 30
30 // Icon's bitmaps' size. 31 // Icon's bitmaps' size.
31 std::vector<gfx::Size> icon_sizes; 32 std::vector<gfx::Size> icon_sizes;
32 }; 33 };
33 34
34 } // namespace favicon 35 } // namespace favicon
35 36
36 #endif // COMPONENTS_FAVICON_CORE_FAVICON_URL_ 37 #endif // COMPONENTS_FAVICON_CORE_FAVICON_URL_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698