diff options
author | naiem.shaik <naiem.shaik@gmail.com> | 2015-02-11 11:05:01 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-11 19:05:37 +0000 |
commit | 0d0496300782f275d8ba6d1b62523859fc4e1a80 (patch) | |
tree | b971b7acf0eca1d8fdb30aa65c32f981d7c79a8a /components/favicon_base | |
parent | f84e88c1edd40b03ed85b2858a8b5769f35ad34b (diff) | |
download | chromium_src-0d0496300782f275d8ba6d1b62523859fc4e1a80.zip chromium_src-0d0496300782f275d8ba6d1b62523859fc4e1a80.tar.gz chromium_src-0d0496300782f275d8ba6d1b62523859fc4e1a80.tar.bz2 |
Move ImportedFaviconUsage to favicons_base component.
ImportedFaviconUsage is part of importer.
Rename it to FaviconUsageData and move it to favicons_base.
BUG=453952
Review URL: https://codereview.chromium.org/902333002
Cr-Commit-Position: refs/heads/master@{#315803}
Diffstat (limited to 'components/favicon_base')
-rw-r--r-- | components/favicon_base/BUILD.gn | 2 | ||||
-rw-r--r-- | components/favicon_base/favicon_usage_data.cc | 15 | ||||
-rw-r--r-- | components/favicon_base/favicon_usage_data.h | 34 |
3 files changed, 51 insertions, 0 deletions
diff --git a/components/favicon_base/BUILD.gn b/components/favicon_base/BUILD.gn index d1e5a75..cf060fe 100644 --- a/components/favicon_base/BUILD.gn +++ b/components/favicon_base/BUILD.gn @@ -7,6 +7,8 @@ source_set("favicon_base") { "favicon_callback.h", "favicon_types.cc", "favicon_types.h", + "favicon_usage_data.cc", + "favicon_usage_data.h", "favicon_util.cc", "favicon_util.h", "select_favicon_frames.cc", diff --git a/components/favicon_base/favicon_usage_data.cc b/components/favicon_base/favicon_usage_data.cc new file mode 100644 index 0000000..7873a92 --- /dev/null +++ b/components/favicon_base/favicon_usage_data.cc @@ -0,0 +1,15 @@ +// Copyright 2013 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. + +#include "components/favicon_base/favicon_usage_data.h" + +namespace favicon_base { + +FaviconUsageData::FaviconUsageData() { +} + +FaviconUsageData::~FaviconUsageData() { +} + +} // namespace favicon_base diff --git a/components/favicon_base/favicon_usage_data.h b/components/favicon_base/favicon_usage_data.h new file mode 100644 index 0000000..c616728 --- /dev/null +++ b/components/favicon_base/favicon_usage_data.h @@ -0,0 +1,34 @@ +// Copyright 2013 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_BASE_FAVICON_USAGE_DATA_H_ +#define COMPONENTS_FAVICON_BASE_FAVICON_USAGE_DATA_H_ + +#include <set> +#include <vector> + +#include "url/gurl.h" + +namespace favicon_base { + +// Used to correlate favicons to imported bookmarks. +struct FaviconUsageData { + FaviconUsageData(); + ~FaviconUsageData(); + + // The URL of the favicon. + GURL favicon_url; + + // The raw png-encoded data. + std::vector<unsigned char> png_data; + + // The list of URLs using this favicon. + std::set<GURL> urls; +}; + +typedef std::vector<FaviconUsageData> FaviconUsageDataList; + +} // namespace favicon_base + +#endif // COMPONENTS_FAVICON_BASE_FAVICON_USAGE_DATA_H_ |