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

Side by Side Diff: components/keyed_service/content/browser_context_keyed_service_factory.h

Issue 623133002: replace OVERRIDE and FINAL with override and final in components/ (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 2014 The Chromium Authors. All rights reserved. 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 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_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_FACTORY_H _ 5 #ifndef COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_FACTORY_H _
6 #define COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_FACTORY_H _ 6 #define COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_FACTORY_H _
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // 86 //
87 // First, BrowserContextShutdown() is called on every ServiceFactory and will 87 // First, BrowserContextShutdown() is called on every ServiceFactory and will
88 // usually call KeyedService::Shutdown(), which gives each 88 // usually call KeyedService::Shutdown(), which gives each
89 // KeyedService a chance to remove dependencies on other 89 // KeyedService a chance to remove dependencies on other
90 // services that it may be holding. 90 // services that it may be holding.
91 // 91 //
92 // Secondly, BrowserContextDestroyed() is called on every ServiceFactory 92 // Secondly, BrowserContextDestroyed() is called on every ServiceFactory
93 // and the default implementation removes it from |mapping_| and deletes 93 // and the default implementation removes it from |mapping_| and deletes
94 // the pointer. 94 // the pointer.
95 virtual void BrowserContextShutdown(content::BrowserContext* context) 95 virtual void BrowserContextShutdown(content::BrowserContext* context)
96 OVERRIDE; 96 override;
97 virtual void BrowserContextDestroyed(content::BrowserContext* context) 97 virtual void BrowserContextDestroyed(content::BrowserContext* context)
98 OVERRIDE; 98 override;
99 99
100 virtual void SetEmptyTestingFactory(content::BrowserContext* context) 100 virtual void SetEmptyTestingFactory(content::BrowserContext* context)
101 OVERRIDE; 101 override;
102 virtual bool HasTestingFactory(content::BrowserContext* context) OVERRIDE; 102 virtual bool HasTestingFactory(content::BrowserContext* context) override;
103 virtual void CreateServiceNow(content::BrowserContext* context) OVERRIDE; 103 virtual void CreateServiceNow(content::BrowserContext* context) override;
104 104
105 private: 105 private:
106 friend class BrowserContextDependencyManager; 106 friend class BrowserContextDependencyManager;
107 friend class BrowserContextDependencyManagerUnittests; 107 friend class BrowserContextDependencyManagerUnittests;
108 108
109 typedef std::map<content::BrowserContext*, KeyedService*> 109 typedef std::map<content::BrowserContext*, KeyedService*>
110 BrowserContextKeyedServices; 110 BrowserContextKeyedServices;
111 typedef std::map<content::BrowserContext*, TestingFactoryFunction> 111 typedef std::map<content::BrowserContext*, TestingFactoryFunction>
112 BrowserContextOverriddenTestingFunctions; 112 BrowserContextOverriddenTestingFunctions;
113 113
114 // The mapping between a BrowserContext and its service. 114 // The mapping between a BrowserContext and its service.
115 BrowserContextKeyedServices mapping_; 115 BrowserContextKeyedServices mapping_;
116 116
117 // The mapping between a BrowserContext and its overridden 117 // The mapping between a BrowserContext and its overridden
118 // TestingFactoryFunction. 118 // TestingFactoryFunction.
119 BrowserContextOverriddenTestingFunctions testing_factories_; 119 BrowserContextOverriddenTestingFunctions testing_factories_;
120 120
121 DISALLOW_COPY_AND_ASSIGN(BrowserContextKeyedServiceFactory); 121 DISALLOW_COPY_AND_ASSIGN(BrowserContextKeyedServiceFactory);
122 }; 122 };
123 123
124 #endif // COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_FACTOR Y_H_ 124 #endif // COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_KEYED_SERVICE_FACTOR Y_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698