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

Side by Side Diff: chrome/browser/policy/schema_registry_service.h

Issue 660123003: Standardize usage of virtual/override/final in chrome/browser/policy/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_SERVICE_H_ 5 #ifndef CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_SERVICE_H_
6 #define CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_SERVICE_H_ 6 #define CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_SERVICE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "components/keyed_service/core/keyed_service.h" 10 #include "components/keyed_service/core/keyed_service.h"
11 11
12 namespace policy { 12 namespace policy {
13 13
14 class CombinedSchemaRegistry; 14 class CombinedSchemaRegistry;
15 class Schema; 15 class Schema;
16 class SchemaRegistry; 16 class SchemaRegistry;
17 17
18 // A KeyedService associated with a Profile that contains a SchemaRegistry. 18 // A KeyedService associated with a Profile that contains a SchemaRegistry.
19 class SchemaRegistryService : public KeyedService { 19 class SchemaRegistryService : public KeyedService {
20 public: 20 public:
21 // This |registry| will initially contain only the |chrome_schema|, if 21 // This |registry| will initially contain only the |chrome_schema|, if
22 // it's valid. The optional |global_registry| must outlive this, and will 22 // it's valid. The optional |global_registry| must outlive this, and will
23 // track |registry|. 23 // track |registry|.
24 SchemaRegistryService(scoped_ptr<SchemaRegistry> registry, 24 SchemaRegistryService(scoped_ptr<SchemaRegistry> registry,
25 const Schema& chrome_schema, 25 const Schema& chrome_schema,
26 CombinedSchemaRegistry* global_registry); 26 CombinedSchemaRegistry* global_registry);
27 virtual ~SchemaRegistryService(); 27 ~SchemaRegistryService() override;
28 28
29 SchemaRegistry* registry() const { return registry_.get(); } 29 SchemaRegistry* registry() const { return registry_.get(); }
30 30
31 private: 31 private:
32 scoped_ptr<SchemaRegistry> registry_; 32 scoped_ptr<SchemaRegistry> registry_;
33 33
34 DISALLOW_COPY_AND_ASSIGN(SchemaRegistryService); 34 DISALLOW_COPY_AND_ASSIGN(SchemaRegistryService);
35 }; 35 };
36 36
37 } // namespace policy 37 } // namespace policy
38 38
39 #endif // CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_SERVICE_H_ 39 #endif // CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_factory.h ('k') | chrome/browser/policy/schema_registry_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698