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 CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_PATCHER_OPERATION_OUT_OF_PROC
ESS_H_ | 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_PATCHER_OPERATION_OUT_OF_PROC
ESS_H_ |
6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_PATCHER_OPERATION_OUT_OF_PROC
ESS_H_ | 6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_PATCHER_OPERATION_OUT_OF_PROC
ESS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "chrome/browser/component_updater/component_patcher_operation.h" | 12 #include "components/component_updater/component_patcher_operation.h" |
13 | 13 |
14 namespace component_updater { | 14 namespace component_updater { |
15 | 15 |
16 class PatchHost; | 16 class PatchHost; |
17 | 17 |
18 // Implements the DeltaUpdateOpPatch out-of-process patching. | 18 // Implements the DeltaUpdateOpPatch out-of-process patching. |
19 class ChromeOutOfProcessPatcher : public OutOfProcessPatcher { | 19 class ChromeOutOfProcessPatcher : public OutOfProcessPatcher { |
20 public: | 20 public: |
21 ChromeOutOfProcessPatcher(); | 21 ChromeOutOfProcessPatcher(); |
22 | 22 |
23 // DeltaUpdateOpPatch::OutOfProcessPatcher implementation. | 23 // DeltaUpdateOpPatch::OutOfProcessPatcher implementation. |
24 virtual void Patch(const std::string& operation, | 24 virtual void Patch(const std::string& operation, |
25 scoped_refptr<base::SequencedTaskRunner> task_runner, | 25 scoped_refptr<base::SequencedTaskRunner> task_runner, |
26 base::FilePath& input_abs_path, | 26 base::FilePath& input_abs_path, |
27 base::FilePath& patch_abs_path, | 27 base::FilePath& patch_abs_path, |
28 base::FilePath& output_abs_path, | 28 base::FilePath& output_abs_path, |
29 base::Callback<void(int result)> callback) OVERRIDE; | 29 base::Callback<void(int result)> callback) OVERRIDE; |
30 | 30 |
31 private: | 31 private: |
32 virtual ~ChromeOutOfProcessPatcher(); | 32 virtual ~ChromeOutOfProcessPatcher(); |
33 | 33 |
34 scoped_refptr<PatchHost> host_; | 34 scoped_refptr<PatchHost> host_; |
35 | 35 |
36 DISALLOW_COPY_AND_ASSIGN(ChromeOutOfProcessPatcher); | 36 DISALLOW_COPY_AND_ASSIGN(ChromeOutOfProcessPatcher); |
37 }; | 37 }; |
38 | 38 |
39 } // namespace component_updater | 39 } // namespace component_updater |
40 | 40 |
41 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_PATCHER_OPERATION_OUT_OF_P
ROCESS_H_ | 41 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_PATCHER_OPERATION_OUT_OF_P
ROCESS_H_ |
OLD | NEW |