| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_SCHEMA_REGISTRY_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_SCHEMA_REGISTRY_H_ |
| 6 #define COMPONENTS_POLICY_CORE_COMMON_SCHEMA_REGISTRY_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_SCHEMA_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 void AddInternalObserver(InternalObserver* observer); | 82 void AddInternalObserver(InternalObserver* observer); |
| 83 void RemoveInternalObserver(InternalObserver* observer); | 83 void RemoveInternalObserver(InternalObserver* observer); |
| 84 | 84 |
| 85 protected: | 85 protected: |
| 86 void Notify(bool has_new_schemas); | 86 void Notify(bool has_new_schemas); |
| 87 | 87 |
| 88 scoped_refptr<SchemaMap> schema_map_; | 88 scoped_refptr<SchemaMap> schema_map_; |
| 89 | 89 |
| 90 private: | 90 private: |
| 91 ObserverList<Observer, true> observers_; | 91 base::ObserverList<Observer, true> observers_; |
| 92 ObserverList<InternalObserver, true> internal_observers_; | 92 base::ObserverList<InternalObserver, true> internal_observers_; |
| 93 bool domains_ready_[POLICY_DOMAIN_SIZE]; | 93 bool domains_ready_[POLICY_DOMAIN_SIZE]; |
| 94 | 94 |
| 95 DISALLOW_COPY_AND_ASSIGN(SchemaRegistry); | 95 DISALLOW_COPY_AND_ASSIGN(SchemaRegistry); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 // A registry that combines the maps of other registries. | 98 // A registry that combines the maps of other registries. |
| 99 class POLICY_EXPORT CombinedSchemaRegistry | 99 class POLICY_EXPORT CombinedSchemaRegistry |
| 100 : public SchemaRegistry, | 100 : public SchemaRegistry, |
| 101 public SchemaRegistry::Observer, | 101 public SchemaRegistry::Observer, |
| 102 public SchemaRegistry::InternalObserver { | 102 public SchemaRegistry::InternalObserver { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 private: | 151 private: |
| 152 SchemaRegistry* wrapped_; | 152 SchemaRegistry* wrapped_; |
| 153 | 153 |
| 154 DISALLOW_COPY_AND_ASSIGN(ForwardingSchemaRegistry); | 154 DISALLOW_COPY_AND_ASSIGN(ForwardingSchemaRegistry); |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace policy | 157 } // namespace policy |
| 158 | 158 |
| 159 #endif // COMPONENTS_POLICY_CORE_COMMON_SCHEMA_REGISTRY_H_ | 159 #endif // COMPONENTS_POLICY_CORE_COMMON_SCHEMA_REGISTRY_H_ |
| OLD | NEW |