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

Side by Side Diff: chrome/installer/util/self_cleaning_temp_dir.h

Issue 11359217: Move scoped_temp_dir from base to base/files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_INSTALLER_UTIL_SELF_CLEANING_TEMP_DIR_H_ 5 #ifndef CHROME_INSTALLER_UTIL_SELF_CLEANING_TEMP_DIR_H_
6 #define CHROME_INSTALLER_UTIL_SELF_CLEANING_TEMP_DIR_H_ 6 #define CHROME_INSTALLER_UTIL_SELF_CLEANING_TEMP_DIR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 11
12 namespace installer { 12 namespace installer {
13 13
14 // A helper class for managing a temporary directory. In relation to 14 // A helper class for managing a temporary directory. In relation to
15 // ScopedTempDir, this class additionally cleans up all non-empty parent 15 // base::ScopedTempDir, this class additionally cleans up all non-empty parent
16 // directories of the temporary directory that are created by an instance. 16 // directories of the temporary directory that are created by an instance.
17 class SelfCleaningTempDir { 17 class SelfCleaningTempDir {
18 public: 18 public:
19 typedef FilePath::StringType StringType; 19 typedef FilePath::StringType StringType;
20 20
21 SelfCleaningTempDir(); 21 SelfCleaningTempDir();
22 22
23 // Performs a Delete(). 23 // Performs a Delete().
24 ~SelfCleaningTempDir(); 24 ~SelfCleaningTempDir();
25 25
(...skipping 20 matching lines...) Expand all
46 FilePath temp_dir_; 46 FilePath temp_dir_;
47 47
48 FRIEND_TEST_ALL_PREFIXES(SelfCleaningTempDirTest, TopLevel); 48 FRIEND_TEST_ALL_PREFIXES(SelfCleaningTempDirTest, TopLevel);
49 FRIEND_TEST_ALL_PREFIXES(SelfCleaningTempDirTest, TopLevelPlusOne); 49 FRIEND_TEST_ALL_PREFIXES(SelfCleaningTempDirTest, TopLevelPlusOne);
50 DISALLOW_COPY_AND_ASSIGN(SelfCleaningTempDir); 50 DISALLOW_COPY_AND_ASSIGN(SelfCleaningTempDir);
51 }; 51 };
52 52
53 } // namespace installer 53 } // namespace installer
54 54
55 #endif // CHROME_INSTALLER_UTIL_SELF_CLEANING_TEMP_DIR_H_ 55 #endif // CHROME_INSTALLER_UTIL_SELF_CLEANING_TEMP_DIR_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/product_unittest.h ('k') | chrome/installer/util/self_cleaning_temp_dir.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698