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

Unified Diff: content/public/browser/graph/browser_context_configuration.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_configuration.h
diff --git a/content/public/browser/graph/browser_context_configuration.h b/content/public/browser/graph/browser_context_configuration.h
new file mode 100644
index 0000000000000000000000000000000000000000..1412b6d208bc61c16ecbedee43908d5ecfe45d5c
--- /dev/null
+++ b/content/public/browser/graph/browser_context_configuration.h
@@ -0,0 +1,56 @@
+// 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_CONFIGURATION_H_
+#define CONTENT_PUBLIC_BROWSER_GRAPH_BROWSER_CONTEXT_CONFIGURATION_H_
+
+#include "base/basictypes.h"
+#include "base/graph/keyed_dependency_manager_configuration.h"
+#include "base/graph/parameter_configuration.h"
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
+#include "content/common/content_export.h"
+
+namespace base {
+class SequencedTaskRunner;
+}
+
+namespace graph {
+class TypeGraphConfiguration;
+} // namespace graph
+
+namespace content {
+
+class BrowserContext;
+class BrowserContextDependencyManager;
+
+class CONTENT_EXPORT BrowserContextConfiguration {
+ public:
+ BrowserContextConfiguration(
+ const scoped_refptr<base::SequencedTaskRunner>& runner);
+ ~BrowserContextConfiguration();
+
+ static scoped_ptr<BrowserContextDependencyManager> CreateDependencyManager(
+ scoped_ptr<BrowserContextConfiguration> configuration);
+
+ graph::TypeGraphConfiguration* default_type_graph_configuration();
+ graph::TypeGraphConfiguration* off_the_record_type_graph_configuration();
+
+ graph::ParameterConfiguration<BrowserContext*>*
+ default_parameter_configuration();
+ graph::ParameterConfiguration<BrowserContext*>*
+ off_the_record_parameter_configuration();
+
+ private:
+ scoped_ptr<graph::KeyedDependencyManagerConfiguration<BrowserContext*> >
+ default_configuration_;
+ scoped_ptr<graph::KeyedDependencyManagerConfiguration<BrowserContext*> >
+ off_the_record_configuration_;
+
+ DISALLOW_COPY_AND_ASSIGN(BrowserContextConfiguration);
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_GRAPH_BROWSER_CONTEXT_CONFIGURATION_H_
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/graph/browser_context_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698