Index: content/public/browser/graph/browser_context_dependency_manager.h |
diff --git a/content/public/browser/graph/browser_context_dependency_manager.h b/content/public/browser/graph/browser_context_dependency_manager.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..15003641a728fd0835730b6d17c0ad3f131059f4 |
--- /dev/null |
+++ b/content/public/browser/graph/browser_context_dependency_manager.h |
@@ -0,0 +1,45 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_PUBLIC_BROWSER_GRAPH_BROWSER_CONTEXT_DEPENDENCY_MANAGER_H_ |
+#define CONTENT_PUBLIC_BROWSER_GRAPH_BROWSER_CONTEXT_DEPENDENCY_MANAGER_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/callback_forward.h" |
+#include "base/graph/keyed_dependency_manager.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "content/common/content_export.h" |
+ |
+namespace content { |
+ |
+class BrowserContext; |
+ |
+class CONTENT_EXPORT BrowserContextDependencyManager { |
+ public: |
+ typedef base::Callback<void(scoped_ptr<graph::DependencyManagerInstance>)> |
+ StartupCallback; |
+ |
+ BrowserContextDependencyManager( |
+ scoped_ptr<graph::KeyedDependencyManager<BrowserContext*> > |
+ default_dependency_manager, |
+ scoped_ptr<graph::KeyedDependencyManager<BrowserContext*> > |
+ off_the_record_dependency_manager); |
+ ~BrowserContextDependencyManager(); |
+ |
+ void Startup(BrowserContext* browser_context, |
+ StartupCallback completion_callback); |
+ static void Shutdown(scoped_ptr<BrowserContextDependencyManager> instance, |
+ const base::Closure& completion_callback); |
+ private: |
+ scoped_ptr<graph::KeyedDependencyManager<BrowserContext*> > |
+ default_dependency_manager_; |
+ scoped_ptr<graph::KeyedDependencyManager<BrowserContext*> > |
+ off_the_record_dependency_manager_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(BrowserContextDependencyManager); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_GRAPH_BROWSER_CONTEXT_DEPENDENCY_MANAGER_H_ |