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

Side by Side Diff: components/update_client/out_of_process_patcher.h

Issue 2873513002: Fix dependencies on OutOfProcessPatcher. (Closed)
Patch Set: fixes 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_UPDATE_CLIENT_OUT_OF_PROCESS_PATCHER_H_
6 #define COMPONENTS_UPDATE_CLIENT_OUT_OF_PROCESS_PATCHER_H_
7
8 namespace update_client {
sdefresne 2017/05/10 07:58:52 Move this below the #include and the forward-decla
9
10 #include <string>
11
12 #include "base/callback_forward.h"
13 #include "base/memory/ref_counted.h"
14
15 namespace base {
16 class FilePath;
17 class SequencedTaskRunner;
18 }
19
20 // An interface an embedder may fulfill to enable out-of-process patching.
21 class OutOfProcessPatcher
22 : public base::RefCountedThreadSafe<OutOfProcessPatcher> {
23 public:
24 virtual void Patch(
25 const std::string& operation,
26 const scoped_refptr<base::SequencedTaskRunner>& task_runner,
27 const base::FilePath& input_abs_path,
28 const base::FilePath& patch_abs_path,
29 const base::FilePath& output_abs_path,
30 const base::Callback<void(int result)>& callback) = 0;
31
32 protected:
33 friend class base::RefCountedThreadSafe<OutOfProcessPatcher>;
34
35 virtual ~OutOfProcessPatcher() {}
36 };
37
38 } // namespace update_client
39
40 #endif // COMPONENTS_UPDATE_CLIENT_OUT_OF_PROCESS_PATCHER_H_
OLDNEW
« 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