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_CONFIGURATION_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_GRAPH_BROWSER_CONTEXT_CONFIGURATION_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/graph/keyed_dependency_manager_configuration.h" |
| 10 #include "base/graph/parameter_configuration.h" |
| 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "content/common/content_export.h" |
| 14 |
| 15 namespace base { |
| 16 class SequencedTaskRunner; |
| 17 } |
| 18 |
| 19 namespace graph { |
| 20 class TypeGraphConfiguration; |
| 21 } // namespace graph |
| 22 |
| 23 namespace content { |
| 24 |
| 25 class BrowserContext; |
| 26 class BrowserContextDependencyManager; |
| 27 |
| 28 class CONTENT_EXPORT BrowserContextConfiguration { |
| 29 public: |
| 30 BrowserContextConfiguration( |
| 31 const scoped_refptr<base::SequencedTaskRunner>& runner); |
| 32 ~BrowserContextConfiguration(); |
| 33 |
| 34 static scoped_ptr<BrowserContextDependencyManager> CreateDependencyManager( |
| 35 scoped_ptr<BrowserContextConfiguration> configuration); |
| 36 |
| 37 graph::TypeGraphConfiguration* default_type_graph_configuration(); |
| 38 graph::TypeGraphConfiguration* off_the_record_type_graph_configuration(); |
| 39 |
| 40 graph::ParameterConfiguration<BrowserContext*>* |
| 41 default_parameter_configuration(); |
| 42 graph::ParameterConfiguration<BrowserContext*>* |
| 43 off_the_record_parameter_configuration(); |
| 44 |
| 45 private: |
| 46 scoped_ptr<graph::KeyedDependencyManagerConfiguration<BrowserContext*> > |
| 47 default_configuration_; |
| 48 scoped_ptr<graph::KeyedDependencyManagerConfiguration<BrowserContext*> > |
| 49 off_the_record_configuration_; |
| 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(BrowserContextConfiguration); |
| 52 }; |
| 53 |
| 54 } // namespace content |
| 55 |
| 56 #endif // CONTENT_PUBLIC_BROWSER_GRAPH_BROWSER_CONTEXT_CONFIGURATION_H_ |
OLD | NEW |