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

Side by Side Diff: base/files/scoped_temp_dir.h

Issue 1549853002: Switch to standard integer types in base/files/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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
« no previous file with comments | « base/files/scoped_file.cc ('k') | base/files/scoped_temp_dir_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 BASE_FILES_SCOPED_TEMP_DIR_H_ 5 #ifndef BASE_FILES_SCOPED_TEMP_DIR_H_
6 #define BASE_FILES_SCOPED_TEMP_DIR_H_ 6 #define BASE_FILES_SCOPED_TEMP_DIR_H_
7 7
8 // An object representing a temporary / scratch directory that should be cleaned 8 // An object representing a temporary / scratch directory that should be cleaned
9 // up (recursively) when this object goes out of scope. Note that since 9 // up (recursively) when this object goes out of scope. Note that since
10 // deletion occurs during the destructor, no further error handling is possible 10 // deletion occurs during the destructor, no further error handling is possible
11 // if the directory fails to be deleted. As a result, deletion is not 11 // if the directory fails to be deleted. As a result, deletion is not
12 // guaranteed by this class. 12 // guaranteed by this class.
13 // 13 //
14 // Multiple calls to the methods which establish a temporary directory 14 // Multiple calls to the methods which establish a temporary directory
15 // (CreateUniqueTempDir, CreateUniqueTempDirUnderPath, and Set) must have 15 // (CreateUniqueTempDir, CreateUniqueTempDirUnderPath, and Set) must have
16 // intervening calls to Delete or Take, or the calls will fail. 16 // intervening calls to Delete or Take, or the calls will fail.
17 17
18 #include "base/base_export.h" 18 #include "base/base_export.h"
19 #include "base/files/file_path.h" 19 #include "base/files/file_path.h"
20 #include "base/macros.h"
20 21
21 namespace base { 22 namespace base {
22 23
23 class BASE_EXPORT ScopedTempDir { 24 class BASE_EXPORT ScopedTempDir {
24 public: 25 public:
25 // No directory is owned/created initially. 26 // No directory is owned/created initially.
26 ScopedTempDir(); 27 ScopedTempDir();
27 28
28 // Recursively delete path. 29 // Recursively delete path.
29 ~ScopedTempDir(); 30 ~ScopedTempDir();
(...skipping 23 matching lines...) Expand all
53 54
54 private: 55 private:
55 FilePath path_; 56 FilePath path_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(ScopedTempDir); 58 DISALLOW_COPY_AND_ASSIGN(ScopedTempDir);
58 }; 59 };
59 60
60 } // namespace base 61 } // namespace base
61 62
62 #endif // BASE_FILES_SCOPED_TEMP_DIR_H_ 63 #endif // BASE_FILES_SCOPED_TEMP_DIR_H_
OLDNEW
« no previous file with comments | « base/files/scoped_file.cc ('k') | base/files/scoped_temp_dir_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698