| 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 CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_SERVICE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_SERVICE_FACTORY_H_ |
| 6 #define CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_SERVICE_FACTORY_H_ | 6 #define CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_SERVICE_FACTORY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 SchemaRegistryService* GetForContextInternal( | 53 SchemaRegistryService* GetForContextInternal( |
| 54 content::BrowserContext* context); | 54 content::BrowserContext* context); |
| 55 | 55 |
| 56 scoped_ptr<SchemaRegistryService> CreateForContextInternal( | 56 scoped_ptr<SchemaRegistryService> CreateForContextInternal( |
| 57 content::BrowserContext* context, | 57 content::BrowserContext* context, |
| 58 const Schema& chrome_schema, | 58 const Schema& chrome_schema, |
| 59 CombinedSchemaRegistry* global_registry); | 59 CombinedSchemaRegistry* global_registry); |
| 60 | 60 |
| 61 // BrowserContextKeyedBaseFactory: | 61 // BrowserContextKeyedBaseFactory: |
| 62 virtual void BrowserContextShutdown( | 62 virtual void BrowserContextShutdown( |
| 63 content::BrowserContext* context) OVERRIDE; | 63 content::BrowserContext* context) override; |
| 64 virtual void BrowserContextDestroyed( | 64 virtual void BrowserContextDestroyed( |
| 65 content::BrowserContext* context) OVERRIDE; | 65 content::BrowserContext* context) override; |
| 66 virtual void SetEmptyTestingFactory( | 66 virtual void SetEmptyTestingFactory( |
| 67 content::BrowserContext* context) OVERRIDE; | 67 content::BrowserContext* context) override; |
| 68 virtual bool HasTestingFactory(content::BrowserContext* context) OVERRIDE; | 68 virtual bool HasTestingFactory(content::BrowserContext* context) override; |
| 69 virtual void CreateServiceNow(content::BrowserContext* context) OVERRIDE; | 69 virtual void CreateServiceNow(content::BrowserContext* context) override; |
| 70 | 70 |
| 71 typedef std::map<content::BrowserContext*, SchemaRegistryService*> | 71 typedef std::map<content::BrowserContext*, SchemaRegistryService*> |
| 72 RegistryMap; | 72 RegistryMap; |
| 73 RegistryMap registries_; | 73 RegistryMap registries_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(SchemaRegistryServiceFactory); | 75 DISALLOW_COPY_AND_ASSIGN(SchemaRegistryServiceFactory); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace policy | 78 } // namespace policy |
| 79 | 79 |
| 80 #endif // CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_SERVICE_FACTORY_H_ | 80 #endif // CHROME_BROWSER_POLICY_SCHEMA_REGISTRY_SERVICE_FACTORY_H_ |
| OLD | NEW |