Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Unified Diff: chrome/browser/component_updater/component_patcher.h

Issue 420503002: Componentize component_updater: Decouple in-process DeltaUpdateOp from out-of-process version. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_patcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/component_patcher.h
diff --git a/chrome/browser/component_updater/component_patcher.h b/chrome/browser/component_updater/component_patcher.h
index f96e1565683533e4d641cb97a07dc4c4561577b0..7a5081a314c9f83b44ea72066bd23ebe1de22e93 100644
--- a/chrome/browser/component_updater/component_patcher.h
+++ b/chrome/browser/component_updater/component_patcher.h
@@ -40,6 +40,7 @@ namespace component_updater {
class ComponentInstaller;
class DeltaUpdateOp;
+class DeltaUpdateOpFactory;
// The type of a patch file.
enum PatchType {
@@ -59,7 +60,7 @@ class ComponentPatcher : public base::RefCountedThreadSafe<ComponentPatcher> {
ComponentPatcher(const base::FilePath& input_dir,
const base::FilePath& unpack_dir,
ComponentInstaller* installer,
- bool in_process,
+ DeltaUpdateOpFactory* delta_update_op_factory,
blundell 2014/07/25 07:40:42 If this object takes ownership of the factory, it
tommycli 2014/07/25 18:08:47 I changed all the usages of this class to use scop
scoped_refptr<base::SequencedTaskRunner> task_runner);
// Starts patching files. This member function returns immediately, after
@@ -84,7 +85,7 @@ class ComponentPatcher : public base::RefCountedThreadSafe<ComponentPatcher> {
const base::FilePath input_dir_;
const base::FilePath unpack_dir_;
ComponentInstaller* const installer_;
- const bool in_process_;
+ scoped_ptr<DeltaUpdateOpFactory> delta_update_op_factory_;
ComponentUnpacker::Callback callback_;
scoped_ptr<base::ListValue> commands_;
base::ValueVector::const_iterator next_command_;
« no previous file with comments | « no previous file | chrome/browser/component_updater/component_patcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698