/external/chromium_org/content/browser/download/ |
H A D | base_file_posix.cc | 13 const base::FilePath& new_path) { 15 // to |new_path|. Here, we try to fix up the destination file with appropriate 20 if (!base::PathExists(new_path)) { 21 int write_error = base::WriteFile(new_path, "", 0); 25 int stat_error = stat(new_path.value().c_str(), &st); 30 if (!base::Move(full_path_, new_path)) 35 int chmod_error = chmod(new_path.value().c_str(), st.st_mode); 12 MoveFileAndAdjustPermissions( const base::FilePath& new_path) argument
|
H A D | base_file_win.cc | 324 const base::FilePath& new_path) { 329 base::FilePath::StringType target = new_path.value(); 323 MoveFileAndAdjustPermissions( const base::FilePath& new_path) argument
|
H A D | base_file.cc | 139 DownloadInterruptReason BaseFile::Rename(const base::FilePath& new_path) { argument 145 if (new_path == full_path_) 154 base::Bind(&FileRenamedNetLogCallback, &full_path_, &new_path)); 156 base::CreateDirectory(new_path.DirName()); 160 rename_result = MoveFileAndAdjustPermissions(new_path); 163 full_path_ = new_path;
|
/external/chromium_org/net/base/ |
H A D | filename_util.cc | 128 std::string new_path; local 130 new_path = path; 131 ReplaceSubstringsAfterOffset(&new_path, 0, "//", "/"); 132 path.swap(new_path); 133 } while (new_path != path);
|
/external/chromium_org/components/crx_file/ |
H A D | id_util.cc | 49 base::FilePath new_path = MaybeNormalizePath(path); local 51 std::string(reinterpret_cast<const char*>(new_path.value().data()), 52 new_path.value().size() * sizeof(base::FilePath::CharType));
|
/external/chromium_org/chrome/browser/chromeos/file_manager/ |
H A D | path_util.cc | 52 base::FilePath* new_path) { 96 *new_path = new_base.Append(relative); 97 return old_path != *new_path; 50 MigratePathFromOldFormat(Profile* profile, const base::FilePath& old_path, base::FilePath* new_path) argument
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
H A D | exec_cmd.c | 85 struct strbuf new_path = STRBUF_INIT; local 87 add_path(&new_path, perf_exec_path()); 88 add_path(&new_path, argv0_path); 91 strbuf_addstr(&new_path, old_path); 93 strbuf_addstr(&new_path, "/usr/local/bin:/usr/bin:/bin"); 95 setenv("PATH", new_path.buf, 1); 97 strbuf_release(&new_path);
|
/external/chromium_org/net/tools/dump_cache/ |
H A D | cache_dumper.cc | 84 std::string new_path = local 86 entry_path_ = base::FilePath::FromUTF8Unsafe(new_path);
|
/external/chromium_org/sandbox/win/tools/finder/ |
H A D | finder_kernel.cc | 128 ATL::CString new_path; local 130 new_path = path + cur_path; 132 new_path = path + L"\\" + cur_path; 135 TestKernelObjectAccess(new_path, cur_type); 139 ParseKernelObjects(new_path);
|
/external/lldb/source/Target/ |
H A D | PathMappingList.cpp | 181 PathMappingList::RemapPath (const ConstString &path, ConstString &new_path) const 197 new_path.SetCString(new_path_str.c_str()); 205 PathMappingList::RemapPath (const char *path, std::string &new_path) const 217 new_path = pos->second.GetCString(); 218 new_path.append(path + prefix_len); 231 char new_path[PATH_MAX]; local 244 const size_t new_path_len = snprintf(new_path, sizeof(new_path), "%s/%s", pos->second.GetCString(), orig_path + prefix_len); 245 if (new_path_len < sizeof(new_path)) 247 new_spec.SetFile (new_path, tru 261 Replace(const ConstString &path, const ConstString &new_path, bool notify) argument [all...] |
/external/chromium_org/base/files/ |
H A D | file_util.cc | 248 FilePath new_path; local 250 new_path = path.InsertBeforeExtensionASCII(StringPrintf(" (%d)", count)); 251 if (!PathExists(new_path) && 252 (!have_suffix || !PathExists(FilePath(new_path.value() + suffix)))) {
|
/external/chromium_org/chrome/browser/chromeos/drive/ |
H A D | file_cache.cc | 568 base::FilePath new_path = current.RemoveExtension(); local 569 if (!new_path.Extension().empty()) { 575 const std::string& id = GetIdFromPath(new_path); 576 new_path = GetCacheFilePath(util::CanonicalizeResourceId(id)); 577 if (new_path != current && !base::Move(current, new_path))
|
/external/chromium_org/chrome/browser/download/ |
H A D | download_path_reservation_tracker.cc | 250 // with |key| to |new_path|. 251 void UpdateReservation(ReservationKey key, const base::FilePath& new_path) { argument 256 iter->second = new_path;
|
/external/chromium_org/chrome/browser/extensions/api/management/ |
H A D | management_browsertest.cc | 130 base::FilePath new_path = extension->path(); local 133 EXPECT_NE(old_path.value(), new_path.value());
|
/external/chromium_org/chrome/browser/profiles/ |
H A D | profile_manager_browsertest.cc | 178 base::FilePath new_path = profile_manager->GenerateNextProfileDirectoryPath(); local 179 profile_manager->CreateProfileAsync(new_path,
|
/external/chromium_org/content/common/ |
H A D | child_process_host_impl.cc | 69 base::FilePath new_path = root_path.Append(new_basename_app) local 74 return new_path;
|
/external/chromium_org/net/url_request/ |
H A D | url_request_file_job.cc | 130 std::string new_path = request_->url().path(); local 131 new_path.push_back('/'); 133 replacements.SetPathStr(new_path); 146 base::FilePath new_path = file_path_; 148 resolved = base::win::ResolveShortcut(new_path, &new_path, NULL); 154 *location = FilePathToFileURL(new_path);
|
/external/chromium_org/sandbox/win/src/ |
H A D | filesystem_policy.cc | 372 bool PreProcessName(const base::string16& path, base::string16* new_path) { argument 373 ConvertToLongPath(path, new_path); 376 if (ERROR_SUCCESS != IsReparsePoint(*new_path, &reparsed))
|
/external/chromium_org/storage/browser/fileapi/ |
H A D | file_system_url_request_job.cc | 248 std::string new_path = request_->url().path(); local 249 new_path.push_back('/'); 251 replacements.SetPathStr(new_path);
|
/external/chromium_org/third_party/android_crazy_linker/src/src/ |
H A D | crazy_linker_proc_maps.cpp | 154 char* new_path = static_cast<char*>(::malloc(entry.path_len + 1)); local 155 ::memcpy(new_path, old_path, entry.path_len); 156 new_path[entry.path_len] = '\0'; 157 entry.path = const_cast<const char*>(new_path);
|
/external/chromium_org/third_party/webrtc/base/ |
H A D | fileutils.cc | 152 const Pathname &new_path) { 156 new_dir.SetFolder(new_path.pathname()); 171 dest.SetFolder(new_path.pathname()); 151 CopyFolder(const Pathname &old_path, const Pathname &new_path) argument
|
H A D | win32filesystem.cc | 231 const Pathname &new_path) { 237 << " to " << new_path.pathname(); 239 ToUtf16(new_path.pathname()).c_str()) != 0; 243 const Pathname &new_path) { 249 << " to " << new_path.pathname(); 251 ToUtf16(new_path.pathname()).c_str()) == 0) { 256 if (!CopyFolder(old_path, new_path)) 291 const Pathname &new_path) { 293 ToUtf16(new_path.pathname()).c_str(), TRUE) != 0; 230 MoveFile(const Pathname &old_path, const Pathname &new_path) argument 242 MoveFolder(const Pathname &old_path, const Pathname &new_path) argument 290 CopyFile(const Pathname &old_path, const Pathname &new_path) argument
|
H A D | fileutils.h | 154 // This moves a file from old_path to new_path, where "old_path" is a 160 const Pathname &new_path) = 0; 162 // This moves a directory from old_path to new_path, where "old_path" is a 167 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path) = 0; 169 // This attempts to move whatever is located at old_path to new_path, 171 bool MoveFileOrFolder(const Pathname &old_path, const Pathname &new_path) { argument 173 return MoveFile(old_path, new_path); 175 return MoveFolder(old_path, new_path); 179 // This copies a file from old_path to new_path. This method ASSERTs and 182 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path) 187 CopyFileOrFolder(const Pathname &old_path, const Pathname &new_path) argument 319 MoveFolder(const Pathname &old_path, const Pathname &new_path) argument 323 MoveFile(const Pathname &old_path, const Pathname &new_path) argument 327 CopyFolder(const Pathname &old_path, const Pathname &new_path) argument 331 CopyFile(const Pathname &old_path, const Pathname &new_path) argument [all...] |
/external/ipsec-tools/src/racoon/ |
H A D | remoteconf.c | 640 vchar_t *new_path; local 652 if ((new_path = vmalloc(len)) == NULL) { 658 new_path->v[0] = '\0'; 659 (void)strlcat(new_path->v, script_dir, len); 660 (void)strlcat(new_path->v, "/", len); 661 (void)strlcat(new_path->v, path->v, len); 664 path = new_path;
|
/external/chromium_org/components/password_manager/core/browser/ |
H A D | password_form_manager.cc | 129 const std::string& new_path = form.origin.path(); local 133 StartsWithASCII(new_path, old_path, /*case_sensitive=*/true);
|