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

Side by Side Diff: base/file_util.h

Issue 1582022: Unpack extensions inside chrome's directory. (Closed)
Patch Set: Final rebase. Created 10 years, 7 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 | « no previous file | base/file_util_posix.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This file contains utility functions for dealing with the local 5 // This file contains utility functions for dealing with the local
6 // filesystem. 6 // filesystem.
7 7
8 #ifndef BASE_FILE_UTIL_H_ 8 #ifndef BASE_FILE_UTIL_H_
9 #define BASE_FILE_UTIL_H_ 9 #define BASE_FILE_UTIL_H_
10 10
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // Like above but for shmem files. Only useful for POSIX. 242 // Like above but for shmem files. Only useful for POSIX.
243 FILE* CreateAndOpenTemporaryShmemFile(FilePath* path); 243 FILE* CreateAndOpenTemporaryShmemFile(FilePath* path);
244 244
245 // Similar to CreateAndOpenTemporaryFile, but the file is created in |dir|. 245 // Similar to CreateAndOpenTemporaryFile, but the file is created in |dir|.
246 FILE* CreateAndOpenTemporaryFileInDir(const FilePath& dir, FilePath* path); 246 FILE* CreateAndOpenTemporaryFileInDir(const FilePath& dir, FilePath* path);
247 247
248 // Same as CreateTemporaryFile but the file is created in |dir|. 248 // Same as CreateTemporaryFile but the file is created in |dir|.
249 bool CreateTemporaryFileInDir(const FilePath& dir, 249 bool CreateTemporaryFileInDir(const FilePath& dir,
250 FilePath* temp_file); 250 FilePath* temp_file);
251 251
252 // Create a directory within another directory.
253 // Extra characters will be appended to |name_tmpl| to ensure that the
254 // new directory does not have the same name as an existing directory.
255 bool CreateTemporaryDirInDir(const FilePath& base_dir,
256 const FilePath::StringType& prefix,
257 FilePath* new_dir);
258
252 // Create a new directory under TempPath. If prefix is provided, the new 259 // Create a new directory under TempPath. If prefix is provided, the new
253 // directory name is in the format of prefixyyyy. 260 // directory name is in the format of prefixyyyy.
254 // NOTE: prefix is ignored in the POSIX implementation. 261 // NOTE: prefix is ignored in the POSIX implementation.
255 // TODO(erikkay): is this OK? 262 // TODO(erikkay): is this OK?
256 // If success, return true and output the full path of the directory created. 263 // If success, return true and output the full path of the directory created.
257 bool CreateNewTempDirectory(const FilePath::StringType& prefix, 264 bool CreateNewTempDirectory(const FilePath::StringType& prefix,
258 FilePath* new_temp_path); 265 FilePath* new_temp_path);
259 266
260 // Creates a directory, as well as creating any parent directories, if they 267 // Creates a directory, as well as creating any parent directories, if they
261 // don't exist. Returns 'true' on successful creation, or if the directory 268 // don't exist. Returns 'true' on successful creation, or if the directory
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 568
562 #endif // UNIT_TEST 569 #endif // UNIT_TEST
563 570
564 } // namespace file_util 571 } // namespace file_util
565 572
566 // Deprecated functions have been moved to this separate header file, 573 // Deprecated functions have been moved to this separate header file,
567 // which must be included last after all the above definitions. 574 // which must be included last after all the above definitions.
568 #include "base/file_util_deprecated.h" 575 #include "base/file_util_deprecated.h"
569 576
570 #endif // BASE_FILE_UTIL_H_ 577 #endif // BASE_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/file_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698