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 14 matching lines...) Expand all Loading... |
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_UPDATE_CLIENT_COMPONENT_PATCHER_H_ | 27 #ifndef COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_H_ |
28 #define COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_H_ | 28 #define COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_H_ |
29 | 29 |
30 #include <memory> | 30 #include <memory> |
31 | 31 |
32 #include "base/callback_forward.h" | 32 #include "base/callback_forward.h" |
33 #include "base/macros.h" | 33 #include "base/macros.h" |
34 #include "base/memory/ref_counted.h" | 34 #include "base/memory/ref_counted.h" |
| 35 #include "base/sequenced_task_runner.h" |
35 #include "base/values.h" | 36 #include "base/values.h" |
36 #include "components/update_client/component_unpacker.h" | 37 #include "components/update_client/component_unpacker.h" |
37 | 38 |
38 namespace base { | 39 namespace base { |
39 class FilePath; | 40 class FilePath; |
40 } | 41 } |
41 | 42 |
42 namespace update_client { | 43 namespace update_client { |
43 | 44 |
44 class CrxInstaller; | 45 class CrxInstaller; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 base::ListValue::const_iterator next_command_; | 98 base::ListValue::const_iterator next_command_; |
98 scoped_refptr<DeltaUpdateOp> current_operation_; | 99 scoped_refptr<DeltaUpdateOp> current_operation_; |
99 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 100 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(ComponentPatcher); | 102 DISALLOW_COPY_AND_ASSIGN(ComponentPatcher); |
102 }; | 103 }; |
103 | 104 |
104 } // namespace update_client | 105 } // namespace update_client |
105 | 106 |
106 #endif // COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_H_ | 107 #endif // COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_H_ |
OLD | NEW |