X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fcomponent_updater%2Fdefault_component_installer.h;h=b6c1c54a99f6631d7c75934c1cbb37a8d3b1c53b;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=12394feca5de598473380f45c337fc0460387d6c;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/component_updater/default_component_installer.h b/src/chrome/browser/component_updater/default_component_installer.h index 12394fe..b6c1c54 100644 --- a/src/chrome/browser/component_updater/default_component_installer.h +++ b/src/chrome/browser/component_updater/default_component_installer.h @@ -9,13 +9,17 @@ #include #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/values.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,7 +80,7 @@ class ComponentInstallerTraits { // to the constructor. class DefaultComponentInstaller : public ComponentInstaller { public: - explicit DefaultComponentInstaller( + DefaultComponentInstaller( scoped_ptr installer_traits); // Registers the component for update checks and installs. @@ -103,6 +107,13 @@ class DefaultComponentInstaller : public ComponentInstaller { std::string current_fingerprint_; scoped_ptr current_manifest_; scoped_ptr installer_traits_; + scoped_refptr task_runner_; + + // Used to post responses back to the main thread. Initialized on the main + // loop but accessed from the task runner. + scoped_refptr main_task_runner_; + + base::ThreadChecker thread_checker_; DISALLOW_COPY_AND_ASSIGN(DefaultComponentInstaller); };