| Index: chrome/browser/component_updater/default_component_installer.h
|
| diff --git a/chrome/browser/component_updater/default_component_installer.h b/chrome/browser/component_updater/default_component_installer.h
|
| index 12394feca5de598473380f45c337fc0460387d6c..f3773e20f304c6008d09670a67a42d677ea27301 100644
|
| --- a/chrome/browser/component_updater/default_component_installer.h
|
| +++ b/chrome/browser/component_updater/default_component_installer.h
|
| @@ -9,13 +9,17 @@
|
| #include <vector>
|
|
|
| #include "base/compiler_specific.h"
|
| +#include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "base/threading/thread_checker.h"
|
| #include "base/version.h"
|
| #include "chrome/browser/component_updater/component_updater_service.h"
|
|
|
| namespace base {
|
| class DictionaryValue;
|
| class FilePath;
|
| +class SequencedTaskRunner;
|
| +class SingleThreadTaskRunner;
|
| } // namespace base
|
|
|
| namespace component_updater {
|
| @@ -76,8 +80,9 @@ class ComponentInstallerTraits {
|
| // to the constructor.
|
| class DefaultComponentInstaller : public ComponentInstaller {
|
| public:
|
| - explicit DefaultComponentInstaller(
|
| - scoped_ptr<ComponentInstallerTraits> installer_traits);
|
| + DefaultComponentInstaller(
|
| + scoped_ptr<ComponentInstallerTraits> installer_traits,
|
| + scoped_refptr<base::SequencedTaskRunner> task_runner);
|
|
|
| // Registers the component for update checks and installs.
|
| void Register(ComponentUpdateService* cus);
|
| @@ -103,6 +108,13 @@ class DefaultComponentInstaller : public ComponentInstaller {
|
| std::string current_fingerprint_;
|
| scoped_ptr<base::DictionaryValue> current_manifest_;
|
| scoped_ptr<ComponentInstallerTraits> installer_traits_;
|
| + scoped_refptr<base::SequencedTaskRunner> task_runner_;
|
| +
|
| + // Used to post responses back to the main thread. Initialized on the main
|
| + // loop but accessed from the task runner.
|
| + scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
|
| +
|
| + base::ThreadChecker thread_checker_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(DefaultComponentInstaller);
|
| };
|
|
|