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

Unified Diff: base/scoped_temp_dir.h

Issue 2838034: Move the SingletonSocket to a temporary directory (Closed)
Patch Set: Address mattm's comments Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/scoped_temp_dir.cc » ('j') | chrome/browser/process_singleton.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/scoped_temp_dir.h
diff --git a/base/scoped_temp_dir.h b/base/scoped_temp_dir.h
index 702c2bc8b6a031b504032be52141f48df4569378..66d52f65163c36ff563ffeedeca8b539ea13d776 100644
--- a/base/scoped_temp_dir.h
+++ b/base/scoped_temp_dir.h
@@ -19,7 +19,7 @@ class ScopedTempDir {
// No directory is owned/created initially.
ScopedTempDir();
- // Recursively delete path_
+ // Recursively delete path.
~ScopedTempDir();
// Creates a unique directory in TempPath, and takes ownership of it.
@@ -33,6 +33,9 @@ class ScopedTempDir {
// Don't call multiple times unless Take() has been called first.
bool Set(const FilePath& path);
+ // Deletes the temporary directory wrapped by this object.
+ void Delete();
+
// Caller takes ownership of the temporary directory so it won't be destroyed
// when this object goes out of scope.
FilePath Take();
« no previous file with comments | « no previous file | base/scoped_temp_dir.cc » ('j') | chrome/browser/process_singleton.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698