Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / extensions / browser / updater / extension_downloader_delegate.cc
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.
4
5 #include "extensions/browser/updater/extension_downloader_delegate.h"
6
7 #include "base/logging.h"
8 #include "base/version.h"
9
10 namespace extensions {
11
12 ExtensionDownloaderDelegate::PingResult::PingResult() : did_ping(false) {
13 }
14
15 ExtensionDownloaderDelegate::PingResult::~PingResult() {
16 }
17
18 ExtensionDownloaderDelegate::~ExtensionDownloaderDelegate() {
19 }
20
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) {
26 }
27
28 bool ExtensionDownloaderDelegate::GetPingDataForExtension(
29     const std::string& id,
30     ManifestFetchData::PingData* ping) {
31   return false;
32 }
33
34 std::string ExtensionDownloaderDelegate::GetUpdateUrlData(
35     const std::string& id) {
36   return std::string();
37 }
38
39 bool ExtensionDownloaderDelegate::ShouldForceUpdate(const std::string& id,
40                                                     std::string* source) {
41   return false;
42 }
43
44 }  // namespace extensions