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

Unified Diff: components/update_client/out_of_process_patcher.h

Issue 2873513002: Fix dependencies on OutOfProcessPatcher. (Closed)
Patch Set: fixed one more dep. 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..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_

Powered by Google App Engine
This is Rietveld 408576698