Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(743)

Unified Diff: components/component_updater/update_checker.h

Issue 565363002: Implement support for fallback update check urls in the component updater (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/component_updater/update_checker.h
diff --git a/components/component_updater/update_checker.h b/components/component_updater/update_checker.h
index 0e372e4fca99ad34c5edad9de6d03d2744fb2662..1b9498f3b85da8619a95ec0123afecdb793ac444 100644
--- a/components/component_updater/update_checker.h
+++ b/components/component_updater/update_checker.h
@@ -26,7 +26,8 @@ struct CrxUpdateItem;
class UpdateChecker {
public:
- typedef base::Callback<void(int error,
+ typedef base::Callback<void(const GURL& original_url,
+ int error,
const std::string& error_message,
const UpdateResponse::Results& results)>
UpdateCheckCallback;
@@ -38,11 +39,10 @@ class UpdateChecker {
// as-is, therefore it must be well-formed as an XML attribute string.
virtual bool CheckForUpdates(
const std::vector<CrxUpdateItem*>& items_to_check,
- const std::string& additional_attributes) = 0;
+ const std::string& additional_attributes,
+ const UpdateCheckCallback& update_check_callback) = 0;
- static scoped_ptr<UpdateChecker> Create(
- const Configurator& config,
- const UpdateCheckCallback& update_check_callback);
+ static scoped_ptr<UpdateChecker> Create(const Configurator& config);
protected:
UpdateChecker() {}

Powered by Google App Engine
This is Rietveld 408576698