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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_PATCHER_OPERATION_OUT_OF_PROCESS_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_PATCHER_OPERATION_OUT_OF_PROCESS_H_
10 #include "base/basictypes.h"
11 #include "base/callback_forward.h"
12 #include "chrome/browser/component_updater/component_patcher_operation.h"
14 namespace component_updater {
18 // Implements the DeltaUpdateOpPatch out-of-process patching.
19 class ChromeOutOfProcessPatcher : public OutOfProcessPatcher {
21 ChromeOutOfProcessPatcher();
23 // DeltaUpdateOpPatch::OutOfProcessPatcher implementation.
24 virtual void Patch(const std::string& operation,
25 scoped_refptr<base::SequencedTaskRunner> task_runner,
26 base::FilePath& input_abs_path,
27 base::FilePath& patch_abs_path,
28 base::FilePath& output_abs_path,
29 base::Callback<void(int result)> callback) OVERRIDE;
32 virtual ~ChromeOutOfProcessPatcher();
34 scoped_refptr<PatchHost> host_;
36 DISALLOW_COPY_AND_ASSIGN(ChromeOutOfProcessPatcher);
39 } // namespace component_updater
41 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_PATCHER_OPERATION_OUT_OF_PROCESS_H_