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.
5 #ifndef GIN_MODULES_MODULE_REGISTRY_OBSERVER_H_
6 #define GIN_MODULES_MODULE_REGISTRY_OBSERVER_H_
11 #include "gin/gin_export.h"
15 // Notified of interesting events from ModuleRegistry.
16 class GIN_EXPORT ModuleRegistryObserver
{
18 // Called from AddPendingModule(). |id| is the id/name of the module and
19 // |dependencies| this list of modules |id| depends upon.
20 virtual void OnDidAddPendingModule(
21 const std::string
& id
,
22 const std::vector
<std::string
>& dependencies
) = 0;
25 virtual ~ModuleRegistryObserver() {}
30 #endif // GIN_MODULES_MODULE_REGISTRY_OBSERVER_H_