OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_GRAPH_BROWSER_CONTEXT_DEPENDENCY_MANAGER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_GRAPH_BROWSER_CONTEXT_DEPENDENCY_MANAGER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/callback_forward.h" |
| 10 #include "base/graph/keyed_dependency_manager.h" |
| 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "content/common/content_export.h" |
| 13 |
| 14 namespace content { |
| 15 |
| 16 class BrowserContext; |
| 17 |
| 18 class CONTENT_EXPORT BrowserContextDependencyManager { |
| 19 public: |
| 20 typedef base::Callback<void(scoped_ptr<graph::DependencyManagerInstance>)> |
| 21 StartupCallback; |
| 22 |
| 23 BrowserContextDependencyManager( |
| 24 scoped_ptr<graph::KeyedDependencyManager<BrowserContext*> > |
| 25 default_dependency_manager, |
| 26 scoped_ptr<graph::KeyedDependencyManager<BrowserContext*> > |
| 27 off_the_record_dependency_manager); |
| 28 ~BrowserContextDependencyManager(); |
| 29 |
| 30 void Startup(BrowserContext* browser_context, |
| 31 StartupCallback completion_callback); |
| 32 static void Shutdown(scoped_ptr<BrowserContextDependencyManager> instance, |
| 33 const base::Closure& completion_callback); |
| 34 private: |
| 35 scoped_ptr<graph::KeyedDependencyManager<BrowserContext*> > |
| 36 default_dependency_manager_; |
| 37 scoped_ptr<graph::KeyedDependencyManager<BrowserContext*> > |
| 38 off_the_record_dependency_manager_; |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(BrowserContextDependencyManager); |
| 41 }; |
| 42 |
| 43 } // namespace content |
| 44 |
| 45 #endif // CONTENT_PUBLIC_BROWSER_GRAPH_BROWSER_CONTEXT_DEPENDENCY_MANAGER_H_ |
OLD | NEW |