Chromium Code Reviews| Index: blimp/engine/common/blimp_browser_context.h |
| diff --git a/blimp/engine/common/blimp_browser_context.h b/blimp/engine/common/blimp_browser_context.h |
| index e02f8316a035d7c664a56e02dd1ce6a5dabf55e4..09d048b5ed6905022a219fa1ed2bc6c920a01fef 100644 |
| --- a/blimp/engine/common/blimp_browser_context.h |
| +++ b/blimp/engine/common/blimp_browser_context.h |
| @@ -9,6 +9,7 @@ |
| #include "base/files/file_path.h" |
| #include "base/macros.h" |
| +#include "blimp/engine/app/blimp_metrics_service_client.h" |
| #include "blimp/engine/app/blimp_system_url_request_context_getter.h" |
| #include "blimp/engine/app/blimp_url_request_context_getter.h" |
| #include "content/public/browser/browser_context.h" |
| @@ -16,6 +17,8 @@ |
| #include "content/public/browser/resource_context.h" |
| #include "net/url_request/url_request_job_factory.h" |
| +class PerfService; |
|
Bernhard Bauer
2016/04/25 08:21:36
PrefService :) But the fact that this doesn't caus
Jess
2016/04/26 00:01:25
Cleaned up.
|
| + |
| namespace net { |
| class NetLog; |
| } |
| @@ -32,6 +35,10 @@ class BlimpBrowserContext : public content::BrowserContext { |
| BlimpBrowserContext(bool off_the_record, net::NetLog* net_log); |
| ~BlimpBrowserContext() override; |
| + // These map to BrowserMainParts::Pre/PostMainMessageLoopRun. |
| + void Initialize(); |
| + void Finalize(); |
| + |
| // content::BrowserContext implementation. |
| std::unique_ptr<content::ZoomLevelDelegate> CreateZoomLevelDelegate( |
| const base::FilePath& partition_path) override; |
| @@ -66,7 +73,10 @@ class BlimpBrowserContext : public content::BrowserContext { |
| // Performs initialization of the BlimpBrowserContext while IO is still |
| // allowed on the current thread. |
| void InitWhileIOAllowed(); |
| + void InitPrefService(); |
| + // Used by metrics service to persist logs and other information. |
| + scoped_ptr<PrefService> pref_service_; |
| std::unique_ptr<BlimpResourceContext> resource_context_; |
| scoped_refptr<BlimpSystemURLRequestContextGetter> system_context_getter_; |
| bool ignore_certificate_errors_; |