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