| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ | 5 #ifndef IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ |
| 6 #define IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ | 6 #define IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 14 #include "ios/chrome/browser/application_context.h" | 14 #include "ios/chrome/browser/application_context.h" |
| 15 | 15 |
| 16 class PrefRegistrySimple; | |
| 17 | |
| 18 namespace base { | 16 namespace base { |
| 19 class CommandLine; | 17 class CommandLine; |
| 20 class SequencedTaskRunner; | 18 class SequencedTaskRunner; |
| 21 } | 19 } |
| 22 | 20 |
| 23 class ApplicationContextImpl : public ApplicationContext { | 21 class ApplicationContextImpl : public ApplicationContext { |
| 24 public: | 22 public: |
| 25 ApplicationContextImpl(base::SequencedTaskRunner* local_state_task_runner, | 23 ApplicationContextImpl(base::SequencedTaskRunner* local_state_task_runner, |
| 26 const base::CommandLine& command_line, | 24 const base::CommandLine& command_line, |
| 27 const std::string& locale); | 25 const std::string& locale); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Sequenced task runner for local state related I/O tasks. | 89 // Sequenced task runner for local state related I/O tasks. |
| 92 const scoped_refptr<base::SequencedTaskRunner> local_state_task_runner_; | 90 const scoped_refptr<base::SequencedTaskRunner> local_state_task_runner_; |
| 93 | 91 |
| 94 bool was_last_shutdown_clean_; | 92 bool was_last_shutdown_clean_; |
| 95 bool created_local_state_; | 93 bool created_local_state_; |
| 96 | 94 |
| 97 DISALLOW_COPY_AND_ASSIGN(ApplicationContextImpl); | 95 DISALLOW_COPY_AND_ASSIGN(ApplicationContextImpl); |
| 98 }; | 96 }; |
| 99 | 97 |
| 100 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ | 98 #endif // IOS_CHROME_BROWSER_APPLICATION_CONTEXT_IMPL_H_ |
| OLD | NEW |