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

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

Issue 2000803003: Use std::unique_ptr for base::DictionaryValue and base::ListValue's internal store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More fixes Created 4 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
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
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_
OLDNEW
« no previous file with comments | « components/signin/core/browser/account_tracker_service.cc ('k') | components/update_client/component_patcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698