Chromium Code Reviews| Index: components/update_client/out_of_process_patcher.h |
| diff --git a/components/update_client/out_of_process_patcher.h b/components/update_client/out_of_process_patcher.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5df80d9c166c171666921bbdc28d09ade352d180 |
| --- /dev/null |
| +++ b/components/update_client/out_of_process_patcher.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_UPDATE_CLIENT_OUT_OF_PROCESS_PATCHER_H_ |
| +#define COMPONENTS_UPDATE_CLIENT_OUT_OF_PROCESS_PATCHER_H_ |
| + |
| +namespace update_client { |
| + |
| +#include <string> |
| + |
| +#include "base/callback_forward.h" |
| +#include "base/memory/ref_counted.h" |
| + |
| +namespace Base { |
|
sdefresne
2017/05/09 08:23:12
Base -> base
Sorin Jianu
2017/05/09 17:30:09
Done.
|
| +class FilePath; |
| +class SequencedTaskRunner; |
| +} |
| + |
| +// An interface an embedder may fulfill to enable out-of-process patching. |
| +class OutOfProcessPatcher |
| + : public base::RefCountedThreadSafe<OutOfProcessPatcher> { |
| + public: |
| + virtual void Patch( |
| + const std::string& operation, |
| + const scoped_refptr<base::SequencedTaskRunner>& task_runner, |
| + const base::FilePath& input_abs_path, |
| + const base::FilePath& patch_abs_path, |
| + const base::FilePath& output_abs_path, |
| + const base::Callback<void(int result)>& callback) = 0; |
| + |
| + protected: |
| + friend class base::RefCountedThreadSafe<OutOfProcessPatcher>; |
| + |
| + virtual ~OutOfProcessPatcher() {} |
| +}; |
| + |
| +} // namespace update_client |
| + |
| +#endif // COMPONENTS_UPDATE_CLIENT_OUT_OF_PROCESS_PATCHER_H_ |