OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 #ifndef EXTENSIONS_BROWSER_UPDATER_MANIFEST_FETCH_DATA_DELEGATE_H_ |
| 6 #define EXTENSIONS_BROWSER_UPDATER_MANIFEST_FETCH_DATA_DELEGATE_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "extensions/browser/updater/manifest_fetch_data.h" |
| 11 |
| 12 namespace extensions { |
| 13 |
| 14 class ManifestFetchDataDelegate { |
| 15 public: |
| 16 ManifestFetchDataDelegate() {} |
| 17 virtual ~ManifestFetchDataDelegate() {} |
| 18 |
| 19 // Returns baseline query parameters to include with every update manifest |
| 20 // fetch request. |
| 21 virtual std::string GetBaseQueryParams() = 0; |
| 22 |
| 23 // Indicates whether or not the Chrome Webstore update service should |
| 24 // also be checked for updates when an item's update URL points elsewhere. |
| 25 virtual bool ShouldAlwaysCheckWebstore() = 0; |
| 26 |
| 27 // Returns a brand code to be submitted with manifest fetch requests. If |
| 28 // this is an empty string, no brand code is submitted. |
| 29 virtual std::string GetBrandCode() = 0; |
| 30 |
| 31 // Returns a string of ping-related query parameters to be appended to a |
| 32 // manifest fetch given an extension ID to be fetched and existing PingData. |
| 33 virtual std::string GetPingParamsAndData( |
| 34 const std::string& extension_id, |
| 35 const ManifestFetchData::PingData& old_ping_data, |
| 36 ManifestFetchData::PingData* new_ping_data) = 0; |
| 37 }; |
| 38 |
| 39 } // namespace extensions |
| 40 |
| 41 #endif // EXTENSIONS_BROWSER_UPDATER_MANIFEST_FETCH_DATA_DELEGATE_H_ |
OLD | NEW |