1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "extensions/browser/updater/extension_downloader_delegate.h"
7 #include "base/logging.h"
8 #include "base/version.h"
10 namespace extensions
{
12 ExtensionDownloaderDelegate::PingResult::PingResult() : did_ping(false) {
15 ExtensionDownloaderDelegate::PingResult::~PingResult() {
18 ExtensionDownloaderDelegate::~ExtensionDownloaderDelegate() {
21 void ExtensionDownloaderDelegate::OnExtensionDownloadFailed(
22 const std::string
& id
,
23 ExtensionDownloaderDelegate::Error error
,
24 const ExtensionDownloaderDelegate::PingResult
& ping_result
,
25 const std::set
<int>& request_id
) {
28 bool ExtensionDownloaderDelegate::GetPingDataForExtension(
29 const std::string
& id
,
30 ManifestFetchData::PingData
* ping
) {
34 std::string
ExtensionDownloaderDelegate::GetUpdateUrlData(
35 const std::string
& id
) {
39 bool ExtensionDownloaderDelegate::ShouldForceUpdate(const std::string
& id
,
40 std::string
* source
) {
44 } // namespace extensions