OLD | NEW |
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_DEPENDENCY_MANAGER_H_ | 5 #ifndef COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_DEPENDENCY_MANAGER_H_ |
6 #define COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_DEPENDENCY_MANAGER_H_ | 6 #define COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_DEPENDENCY_MANAGER_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/callback_list.h" | 9 #include "base/callback_list.h" |
10 #include "components/keyed_service/core/dependency_manager.h" | 10 #include "components/keyed_service/core/dependency_manager.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 private: | 81 private: |
82 friend class BrowserContextDependencyManagerUnittests; | 82 friend class BrowserContextDependencyManagerUnittests; |
83 friend struct DefaultSingletonTraits<BrowserContextDependencyManager>; | 83 friend struct DefaultSingletonTraits<BrowserContextDependencyManager>; |
84 | 84 |
85 // Helper function used by CreateBrowserContextServices[ForTest]. | 85 // Helper function used by CreateBrowserContextServices[ForTest]. |
86 void DoCreateBrowserContextServices(content::BrowserContext* context, | 86 void DoCreateBrowserContextServices(content::BrowserContext* context, |
87 bool is_testing_context); | 87 bool is_testing_context); |
88 | 88 |
89 BrowserContextDependencyManager(); | 89 BrowserContextDependencyManager(); |
90 virtual ~BrowserContextDependencyManager(); | 90 ~BrowserContextDependencyManager() override; |
91 | 91 |
92 #ifndef NDEBUG | 92 #ifndef NDEBUG |
93 // DependencyManager: | 93 // DependencyManager: |
94 virtual void DumpContextDependencies( | 94 void DumpContextDependencies( |
95 const base::SupportsUserData* context) const final; | 95 const base::SupportsUserData* context) const final; |
96 #endif // NDEBUG | 96 #endif // NDEBUG |
97 | 97 |
98 // A list of callbacks to call just before executing | 98 // A list of callbacks to call just before executing |
99 // CreateBrowserContextServices() or CreateBrowserContextServicesForTest(). | 99 // CreateBrowserContextServices() or CreateBrowserContextServicesForTest(). |
100 base::CallbackList<void(content::BrowserContext*)> | 100 base::CallbackList<void(content::BrowserContext*)> |
101 will_create_browser_context_services_callbacks_; | 101 will_create_browser_context_services_callbacks_; |
102 }; | 102 }; |
103 | 103 |
104 #endif // COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_DEPENDENCY_MANAGER_H
_ | 104 #endif // COMPONENTS_KEYED_SERVICE_CONTENT_BROWSER_CONTEXT_DEPENDENCY_MANAGER_H
_ |
OLD | NEW |