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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/local_temp_file.cc

Issue 10815080: Add an interface for nacl to create delete-on-close temp files, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert buildbot hack Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/local_temp_file.h ('k') | ppapi/native_client/src/trusted/plugin/plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698