OLD | NEW |
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 // Component updates can be either differential updates or full updates. | 5 // Component updates can be either differential updates or full updates. |
6 // Full updates come in CRX format; differential updates come in CRX-style | 6 // Full updates come in CRX format; differential updates come in CRX-style |
7 // archives, but have a different magic number. They contain "commands.json", a | 7 // archives, but have a different magic number. They contain "commands.json", a |
8 // list of commands for the patcher to follow. The patcher uses these commands, | 8 // list of commands for the patcher to follow. The patcher uses these commands, |
9 // the other files in the archive, and the files from the existing installation | 9 // the other files in the archive, and the files from the existing installation |
10 // of the component to create the contents of a full update, which is then | 10 // of the component to create the contents of a full update, which is then |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 void DonePatchingFile(ComponentUnpacker::Error error, int extended_error); | 84 void DonePatchingFile(ComponentUnpacker::Error error, int extended_error); |
85 | 85 |
86 void DonePatching(ComponentUnpacker::Error error, int extended_error); | 86 void DonePatching(ComponentUnpacker::Error error, int extended_error); |
87 | 87 |
88 const base::FilePath input_dir_; | 88 const base::FilePath input_dir_; |
89 const base::FilePath unpack_dir_; | 89 const base::FilePath unpack_dir_; |
90 scoped_refptr<CrxInstaller> installer_; | 90 scoped_refptr<CrxInstaller> installer_; |
91 scoped_refptr<OutOfProcessPatcher> out_of_process_patcher_; | 91 scoped_refptr<OutOfProcessPatcher> out_of_process_patcher_; |
92 ComponentUnpacker::Callback callback_; | 92 ComponentUnpacker::Callback callback_; |
93 std::unique_ptr<base::ListValue> commands_; | 93 std::unique_ptr<base::ListValue> commands_; |
94 base::ValueVector::const_iterator next_command_; | 94 base::ListValue::const_iterator next_command_; |
95 scoped_refptr<DeltaUpdateOp> current_operation_; | 95 scoped_refptr<DeltaUpdateOp> current_operation_; |
96 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 96 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(ComponentPatcher); | 98 DISALLOW_COPY_AND_ASSIGN(ComponentPatcher); |
99 }; | 99 }; |
100 | 100 |
101 } // namespace update_client | 101 } // namespace update_client |
102 | 102 |
103 #endif // COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_H_ | 103 #endif // COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_H_ |
OLD | NEW |