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

Side by Side Diff: components/policy/core/common/schema_registry.h

Issue 1749053002: Move //remoting/remoting_host_win.gypi:* to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update for component build of Windows Created 4 years, 9 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 unified diff | Download patch
OLDNEW
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/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Invoked when |registry| is about to be destroyed. 49 // Invoked when |registry| is about to be destroyed.
50 virtual void OnSchemaRegistryShuttingDown(SchemaRegistry* registry) = 0; 50 virtual void OnSchemaRegistryShuttingDown(SchemaRegistry* registry) = 0;
51 51
52 protected: 52 protected:
53 virtual ~InternalObserver(); 53 virtual ~InternalObserver();
54 }; 54 };
55 55
56 SchemaRegistry(); 56 SchemaRegistry();
57 virtual ~SchemaRegistry(); 57 virtual ~SchemaRegistry();
58 58
59 const scoped_refptr<SchemaMap>& schema_map() const { return schema_map_; } 59 const scoped_refptr<SchemaMap>& schema_map() const;
60 60
61 // Register a single component. 61 // Register a single component.
62 void RegisterComponent(const PolicyNamespace& ns, 62 void RegisterComponent(const PolicyNamespace& ns,
63 const Schema& schema); 63 const Schema& schema);
64 64
65 // Register a list of components for a given domain. 65 // Register a list of components for a given domain.
66 virtual void RegisterComponents(PolicyDomain domain, 66 virtual void RegisterComponents(PolicyDomain domain,
67 const ComponentMap& components); 67 const ComponentMap& components);
68 68
69 virtual void UnregisterComponent(const PolicyNamespace& ns); 69 virtual void UnregisterComponent(const PolicyNamespace& ns);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698