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

Side by Side Diff: components/favicon_base/favicon_usage_data.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BASE_FAVICON_USAGE_DATA_H_ 5 #ifndef COMPONENTS_FAVICON_BASE_FAVICON_USAGE_DATA_H_
6 #define COMPONENTS_FAVICON_BASE_FAVICON_USAGE_DATA_H_ 6 #define COMPONENTS_FAVICON_BASE_FAVICON_USAGE_DATA_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace favicon_base { 13 namespace favicon_base {
14 14
15 // Used to correlate favicons to imported bookmarks. 15 // Used to correlate favicons to imported bookmarks.
16 struct FaviconUsageData { 16 struct FaviconUsageData {
17 FaviconUsageData(); 17 FaviconUsageData();
18 FaviconUsageData(const FaviconUsageData& other);
18 ~FaviconUsageData(); 19 ~FaviconUsageData();
19 20
20 // The URL of the favicon. 21 // The URL of the favicon.
21 GURL favicon_url; 22 GURL favicon_url;
22 23
23 // The raw png-encoded data. 24 // The raw png-encoded data.
24 std::vector<unsigned char> png_data; 25 std::vector<unsigned char> png_data;
25 26
26 // The list of URLs using this favicon. 27 // The list of URLs using this favicon.
27 std::set<GURL> urls; 28 std::set<GURL> urls;
28 }; 29 };
29 30
30 typedef std::vector<FaviconUsageData> FaviconUsageDataList; 31 typedef std::vector<FaviconUsageData> FaviconUsageDataList;
31 32
32 } // namespace favicon_base 33 } // namespace favicon_base
33 34
34 #endif // COMPONENTS_FAVICON_BASE_FAVICON_USAGE_DATA_H_ 35 #endif // COMPONENTS_FAVICON_BASE_FAVICON_USAGE_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698