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 10 matching lines...) Expand all Loading... |
21 // and allowed to, and fall back to a full update if it fails. | 21 // and allowed to, and fall back to a full update if it fails. |
22 // | 22 // |
23 // After installation (diff or full), the component updater records "fp", the | 23 // After installation (diff or full), the component updater records "fp", the |
24 // fingerprint of the installed files, to later identify the existing files to | 24 // fingerprint of the installed files, to later identify the existing files to |
25 // the server so that a proper differential update can be provided next cycle. | 25 // the server so that a proper differential update can be provided next cycle. |
26 | 26 |
27 #ifndef COMPONENTS_COMPONENT_UPDATER_COMPONENT_PATCHER_H_ | 27 #ifndef COMPONENTS_COMPONENT_UPDATER_COMPONENT_PATCHER_H_ |
28 #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_PATCHER_H_ | 28 #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_PATCHER_H_ |
29 | 29 |
30 #include "base/callback_forward.h" | 30 #include "base/callback_forward.h" |
| 31 #include "base/macros.h" |
31 #include "base/memory/ref_counted.h" | 32 #include "base/memory/ref_counted.h" |
32 #include "base/memory/scoped_ptr.h" | 33 #include "base/memory/scoped_ptr.h" |
33 #include "base/values.h" | 34 #include "base/values.h" |
34 #include "components/component_updater/component_unpacker.h" | 35 #include "components/component_updater/component_unpacker.h" |
35 | 36 |
36 namespace base { | 37 namespace base { |
37 class FilePath; | 38 class FilePath; |
38 } | 39 } |
39 | 40 |
40 namespace component_updater { | 41 namespace component_updater { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 base::ValueVector::const_iterator next_command_; | 93 base::ValueVector::const_iterator next_command_; |
93 scoped_refptr<DeltaUpdateOp> current_operation_; | 94 scoped_refptr<DeltaUpdateOp> current_operation_; |
94 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 95 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
95 | 96 |
96 DISALLOW_COPY_AND_ASSIGN(ComponentPatcher); | 97 DISALLOW_COPY_AND_ASSIGN(ComponentPatcher); |
97 }; | 98 }; |
98 | 99 |
99 } // namespace component_updater | 100 } // namespace component_updater |
100 | 101 |
101 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_PATCHER_H_ | 102 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_PATCHER_H_ |
OLD | NEW |