Roll src/third_party/android_protobuf 94f522f9:999188d0
[chromium-blink-merge.git] / gin / modules / module_registry_observer.h
blob68ee4adc759052c60622d05cf158c34a59dbd4bd
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_
8 #include <string>
9 #include <vector>
11 #include "gin/gin_export.h"
13 namespace gin {
15 // Notified of interesting events from ModuleRegistry.
16 class GIN_EXPORT ModuleRegistryObserver {
17 public:
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;
24 protected:
25 virtual ~ModuleRegistryObserver() {}
28 } // namespace gin
30 #endif // GIN_MODULES_MODULE_REGISTRY_OBSERVER_H_