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

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: git pull && gclient sync 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..fe20526be0fb60d5aaf4fd03f4fb53332f015c50 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;
+ std::unique_ptr<ComponentInfo> GetComponentForMimeType(
+ const std::string& id) 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);
« no previous file with comments | « components/component_updater/component_updater_service.cc ('k') | components/component_updater/default_component_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698