1a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved. 2a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 3a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)// found in the LICENSE file. 4a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) 5eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch#ifndef CHROME_COMMON_IMPORTER_IMPORTED_FAVICON_USAGE_H_ 6eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch#define CHROME_COMMON_IMPORTER_IMPORTED_FAVICON_USAGE_H_ 7a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) 8a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)#include <set> 9a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)#include <vector> 10a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) 11eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch#include "url/gurl.h" 12a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) 13a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)// Used to correlate favicons to imported bookmarks. 14a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)struct ImportedFaviconUsage { 15a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) ImportedFaviconUsage(); 16a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) ~ImportedFaviconUsage(); 17a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) 18a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) // The URL of the favicon. 19a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) GURL favicon_url; 20a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) 21a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) // The raw png-encoded data. 22a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) std::vector<unsigned char> png_data; 23a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) 24a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) // The list of URLs using this favicon. 25a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) std::set<GURL> urls; 26a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)}; 27a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles) 28eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch#endif // CHROME_COMMON_IMPORTER_IMPORTED_FAVICON_USAGE_H_ 29