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

Side by Side Diff: chrome/browser/component_updater/component_patcher_operation_out_of_process.h

Issue 449643002: Componentize component_updater: Move over a bunch of files to the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS order Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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" 10 #include "base/basictypes.h"
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "chrome/browser/component_updater/component_patcher_operation.h" 12 #include "components/component_updater/component_patcher_operation.h"
13 13
14 namespace component_updater { 14 namespace component_updater {
15 15
16 class PatchHost; 16 class PatchHost;
17 17
18 // Implements the DeltaUpdateOpPatch out-of-process patching. 18 // Implements the DeltaUpdateOpPatch out-of-process patching.
19 class ChromeOutOfProcessPatcher : public OutOfProcessPatcher { 19 class ChromeOutOfProcessPatcher : public OutOfProcessPatcher {
20 public: 20 public:
21 ChromeOutOfProcessPatcher(); 21 ChromeOutOfProcessPatcher();
22 22
23 // DeltaUpdateOpPatch::OutOfProcessPatcher implementation. 23 // DeltaUpdateOpPatch::OutOfProcessPatcher implementation.
24 virtual void Patch(const std::string& operation, 24 virtual void Patch(const std::string& operation,
25 scoped_refptr<base::SequencedTaskRunner> task_runner, 25 scoped_refptr<base::SequencedTaskRunner> task_runner,
26 base::FilePath& input_abs_path, 26 base::FilePath& input_abs_path,
27 base::FilePath& patch_abs_path, 27 base::FilePath& patch_abs_path,
28 base::FilePath& output_abs_path, 28 base::FilePath& output_abs_path,
29 base::Callback<void(int result)> callback) OVERRIDE; 29 base::Callback<void(int result)> callback) OVERRIDE;
30 30
31 private: 31 private:
32 virtual ~ChromeOutOfProcessPatcher(); 32 virtual ~ChromeOutOfProcessPatcher();
33 33
34 scoped_refptr<PatchHost> host_; 34 scoped_refptr<PatchHost> host_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(ChromeOutOfProcessPatcher); 36 DISALLOW_COPY_AND_ASSIGN(ChromeOutOfProcessPatcher);
37 }; 37 };
38 38
39 } // namespace component_updater 39 } // namespace component_updater
40 40
41 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_PATCHER_OPERATION_OUT_OF_P ROCESS_H_ 41 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_PATCHER_OPERATION_OUT_OF_P ROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698