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_ |