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

Unified Diff: components/component_updater/component_updater_service_internal.h

Issue 2154773002: Implement Just-In-Time Flash updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Through #27 + lint/format + offline comments Created 4 years, 5 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/component_updater_service_internal.h
diff --git a/components/component_updater/component_updater_service_internal.h b/components/component_updater/component_updater_service_internal.h
index e20a3156fadda9380535ddf2a1c55ffb185c2956..0a5e762aa8332109d95dcfc5057d019fb33d2c0d 100644
--- a/components/component_updater/component_updater_service_internal.h
+++ b/components/component_updater/component_updater_service_internal.h
@@ -43,6 +43,8 @@ class CrxUpdateService : public ComponentUpdateService,
bool RegisterComponent(const CrxComponent& component) override;
bool UnregisterComponent(const std::string& id) override;
std::vector<std::string> GetComponentIDs() const override;
+ bool GetComponentForMimeType(const std::string& id,
+ ComponentInfo* info) const override;
OnDemandUpdater& GetOnDemandUpdater() override;
void MaybeThrottle(const std::string& id,
const base::Closure& callback) override;
@@ -107,6 +109,11 @@ class CrxUpdateService : public ComponentUpdateService,
using ComponentStates = std::map<std::string, CrxUpdateItem>;
ComponentStates component_states_;
+ // Contains a map of media types to the component that implements a handler
+ // for that media type. Only the most recently-registered component is
+ // tracked. May include the IDs of un-registered components.
+ std::map<std::string, std::string> component_ids_by_mime_type_;
+
scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
DISALLOW_COPY_AND_ASSIGN(CrxUpdateService);

Powered by Google App Engine
This is Rietveld 408576698