OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "native_client/src/trusted/plugin/local_temp_file.h" | 5 #include "native_client/src/trusted/plugin/local_temp_file.h" |
6 | 6 |
7 #include "native_client/src/include/portability_io.h" | 7 #include "native_client/src/include/portability_io.h" |
8 #include "native_client/src/shared/platform/nacl_check.h" | 8 #include "native_client/src/shared/platform/nacl_check.h" |
9 #include "native_client/src/trusted/plugin/plugin.h" | 9 #include "native_client/src/trusted/plugin/plugin.h" |
10 #include "native_client/src/trusted/plugin/utility.h" | 10 #include "native_client/src/trusted/plugin/utility.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 old_ref_.reset(file_ref_.release()); | 232 old_ref_.reset(file_ref_.release()); |
233 file_ref_.reset(new pp::FileRef(*file_system_, filename_.c_str())); | 233 file_ref_.reset(new pp::FileRef(*file_system_, filename_.c_str())); |
234 old_ref_->Rename(*file_ref_, cb); | 234 old_ref_->Rename(*file_ref_, cb); |
235 } | 235 } |
236 | 236 |
237 void LocalTempFile::FinishRename() { | 237 void LocalTempFile::FinishRename() { |
238 // Now we can release the old ref. | 238 // Now we can release the old ref. |
239 old_ref_.reset(NULL); | 239 old_ref_.reset(NULL); |
240 } | 240 } |
241 | 241 |
242 } // namespace plugin | 242 } // namespace plugin |
OLD | NEW |