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

Unified Diff: components/update_client/out_of_process_patcher.h

Issue 2873513002: Fix dependencies on OutOfProcessPatcher. (Closed)
Patch Set: base namespace fix Created 3 years, 7 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
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..a41f01b223c336bc27fba393daf81c0325bb65cd
--- /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_
+
+#include <string>
+
+#include "base/callback_forward.h"
+#include "base/memory/ref_counted.h"
+
+namespace base {
+class FilePath;
+class SequencedTaskRunner;
+}
+
+namespace update_client {
+
+// An interface an embedder can implement 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_
« no previous file with comments | « components/update_client/component_unpacker_unittest.cc ('k') | components/update_client/test_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698