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

Unified Diff: content/public/browser/graph/browser_context_dependency_manager.h

Issue 18796007: Content API changes to integrate base/graph. (Closed) Base URL: marinoni.mon:/usr/local/google/src/chromium/src@base_graph_review
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698