Searched refs:file_path (Results 1 - 25 of 153) sorted by relevance

1234567

/external/chromium/chrome/browser/download/
H A Ddownload_types.cc17 : file_path(info.file_path),
25 file_path = info.file_path;
H A Ddrag_download_util.cc8 #include "base/file_path.h"
58 FileStream* CreateFileStreamForDrop(FilePath* file_path) { argument
59 DCHECK(file_path && !file_path->empty());
66 new_file_path = *file_path;
73 new_file_path = file_path->InsertBeforeExtension(suffix);
81 *file_path = new_file_path;
101 void PromiseFileFinalizer::OnDownloadCompleted(const FilePath& file_path) { argument
H A Ddrag_download_util.h40 net::FileStream* CreateFileStreamForDrop(FilePath* file_path);
49 virtual void OnDownloadCompleted(const FilePath& file_path);
/external/chromium/base/
H A Dvalue_conversions.cc7 #include "base/file_path.h"
19 std::string FilePathToUTF8(const FilePath& file_path) { argument
21 return WideToUTF8(SysNativeMBToWide(file_path.value()));
23 return UTF16ToUTF8(file_path.value());
43 bool GetValueAsFilePath(const Value& value, FilePath* file_path) { argument
47 if (file_path)
48 *file_path = UTF8ToFilePath(str);
H A Dvalue_conversions.h21 BASE_API bool GetValueAsFilePath(const Value& value, FilePath* file_path);
H A Dfile_util_proxy.h12 #include "base/file_path.h"
59 // a new file at the given |file_path| and calls back with
60 // PLATFORM_FILE_ERROR_FILE_EXISTS if the |file_path| already exists.
62 const FilePath& file_path,
77 // Ensures that the given |file_path| exist. This creates a empty new file
78 // at |file_path| if the |file_path| does not exist.
79 // If a new file han not existed and is created at the |file_path|,
88 const FilePath& file_path,
95 const FilePath& file_path,
[all...]
/external/webkit/Tools/Scripts/webkitpy/style/checkers/
H A Dtext.py38 def __init__(self, file_path, handle_style_error):
39 self.file_path = file_path
41 self._tab_checker = TabChecker(file_path, handle_style_error)
H A Dcommon.py64 def __init__(self, file_path, handle_style_error):
65 self.file_path = file_path
H A Dxml.py33 def __init__(self, file_path, handle_style_error):
34 self.file_path = file_path
H A Dpython.py32 def __init__(self, file_path, handle_style_error):
33 self._file_path = file_path
H A Dchangelog.py37 def __init__(self, file_path, handle_style_error, should_line_be_checked):
38 self.file_path = file_path
41 self._tab_checker = TabChecker(file_path, handle_style_error)
H A Dpython_unittest.py55 file_path = os.path.join(current_dir, "python_unittest_input.py")
57 checker = PythonChecker(file_path, _mock_handle_style_error)
/external/webkit/Tools/Scripts/webkitpy/style/
H A Dfilereader.py68 def _read_lines(self, file_path):
76 if file_path == '-':
86 file = codecs.open(file_path, 'r', 'utf8', 'replace')
96 def process_file(self, file_path, **kwargs):
100 file_path: The path of the file to process.
106 SystemExit: If no file at file_path exists.
111 if not os.path.exists(file_path) and file_path != "-":
112 _log.error("File does not exist: '%s'" % file_path)
115 if not self._processor.should_process(file_path)
[all...]
H A Dchecker.py435 def _file_extension(self, file_path):
437 return os.path.splitext(file_path)[1].lstrip(".")
439 def should_skip_with_warning(self, file_path):
442 if file_path.find(skipped_file) >= 0:
446 def should_skip_without_warning(self, file_path):
448 if not self._file_type(file_path): # FileType.NONE.
458 basename = os.path.basename(file_path)
464 if file_path.find(skipped_file) >= 0:
468 def should_check_and_strip_carriage_returns(self, file_path):
469 return self._file_extension(file_path) no
[all...]
H A Dchecker_unittest.py318 checker = self._dispatcher.dispatch(file_path=path,
364 for file_path, expected_result in files.items():
365 self.assertEquals(dispatcher.should_check_and_strip_carriage_returns(file_path), expected_result, 'Checking: %s' % file_path)
372 def dispatch(self, file_path):
376 checker = dispatcher.dispatch(file_path,
381 def assert_checker_none(self, file_path):
383 checker = self.dispatch(file_path)
384 self.assertTrue(checker is None, 'Checking: "%s"' % file_path)
386 def assert_checker(self, file_path, expected_clas
[all...]
H A Dfilereader_unittest.py53 def should_process(self, file_path):
54 return not file_path.endswith('should_not_process.txt')
56 def process(self, lines, file_path, test_kwarg=None):
57 self.processed.append((lines, file_path, test_kwarg))
76 file_path = os.path.join(self._temp_dir, rel_path)
77 with codecs.open(file_path, "w", encoding) as file:
79 return file_path
122 file_path = self._create_file('should_not_process.txt', 'contents')
124 self._file_reader.process_file(file_path)
128 file_path
[all...]
H A Dpatchreader_unittest.py47 """A list of (file_path, line_numbers) pairs."""
51 def process_file(self, file_path, line_numbers):
52 self.passed_to_process_file.append((file_path, line_numbers))
/external/chromium/webkit/glue/
H A Dwebfileutilities_impl.cc7 #include "base/file_path.h"
32 FilePath::StringType file_path = WebStringToFilePathString(path); local
33 return file_util::PathExists(FilePath(file_path));
70 FilePath file_path(WebStringToFilePathString(path));
71 return FilePathToWebString(file_path.DirName());
85 FilePath::StringType file_path = WebStringToFilePathString(path); local
86 return file_util::CreateDirectory(FilePath(file_path));
90 FilePath file_path(WebStringToFilePathString(path));
91 file_util::AbsolutePath(&file_path);
92 return FilePathStringToWebString(file_path
[all...]
/external/chromium/chrome/browser/
H A Dmock_browsing_data_indexed_db_helper.cc28 const FilePath& file_path) {
29 CHECK(files_.find(file_path.value()) != files_.end());
30 last_deleted_file_ = file_path;
31 files_[file_path.value()] = false;
27 DeleteIndexedDBFile( const FilePath& file_path) argument
H A Dmock_browsing_data_local_storage_helper.cc29 const FilePath& file_path) {
30 CHECK(files_.find(file_path.value()) != files_.end());
31 last_deleted_file_ = file_path;
32 files_[file_path.value()] = false;
28 DeleteLocalStorageFile( const FilePath& file_path) argument
H A Dbrowsing_data_indexed_db_helper.cc31 virtual void DeleteIndexedDBFile(const FilePath& file_path);
41 void DeleteIndexedDBFileInWebKitThread(const FilePath& file_path);
91 const FilePath& file_path) {
99 file_path));
108 for (FilePath file_path = file_enumerator.Next(); !file_path.empty();
109 file_path = file_enumerator.Next()) {
110 if (file_path.Extension() == IndexedDBContext::kIndexedDBExtension) {
113 webkit_glue::FilePathToWebString(file_path.BaseName()));
120 bool ret = file_util::GetFileInfo(file_path,
90 DeleteIndexedDBFile( const FilePath& file_path) argument
153 DeleteIndexedDBFileInWebKitThread( const FilePath& file_path) argument
161 IndexedDBInfo( const std::string& protocol, const std::string& host, unsigned short port, const std::string& database_identifier, const std::string& origin, const FilePath& file_path, int64 size, base::Time last_modified) argument
[all...]
H A Dbrowsing_data_local_storage_helper_browsertest.cc9 #include "base/file_path.h"
49 FilePath file_path = storage_path.Append(kFilesToCreate[i]); local
50 file_util::WriteFile(file_path, NULL, 0);
128 for (FilePath file_path = file_enumerator.Next();
129 !file_path.empty();
130 file_path = file_enumerator.Next()) {
131 ASSERT_FALSE(FilePath(kTestFile0) == file_path.BaseName());
159 EXPECT_EQ(FilePath(file1).value(), result[0].file_path.BaseName().value());
160 EXPECT_EQ(FilePath(file2).value(), result[1].file_path.BaseName().value());
181 EXPECT_EQ(FilePath(file).value(), result[0].file_path
[all...]
H A Dbrowsing_data_local_storage_helper.cc32 const FilePath& file_path,
40 file_path(file_path),
79 const FilePath& file_path) {
87 file_path));
96 for (FilePath file_path = file_enumerator.Next(); !file_path.empty();
97 file_path = file_enumerator.Next()) {
98 if (file_path.Extension() == DOMStorageContext::kLocalStorageExtension) {
101 webkit_glue::FilePathToWebString(file_path
26 LocalStorageInfo( const std::string& protocol, const std::string& host, unsigned short port, const std::string& database_identifier, const std::string& origin, const FilePath& file_path, int64 size, base::Time last_modified) argument
78 DeleteLocalStorageFile( const FilePath& file_path) argument
141 DeleteLocalStorageFileInWebKitThread( const FilePath& file_path) argument
[all...]
H A Dbrowsing_data_indexed_db_helper.h13 #include "base/file_path.h"
40 const FilePath& file_path,
54 FilePath file_path; member in struct:BrowsingDataIndexedDBHelper::IndexedDBInfo
73 virtual void DeleteIndexedDBFile(const FilePath& file_path) = 0;
108 virtual void DeleteIndexedDBFile(const FilePath& file_path) {} argument
/external/chromium/net/url_request/
H A Durl_request_file_job.cc51 void Resolve(const FilePath& file_path) { argument
53 bool exists = file_util::GetFileInfo(file_path, &file_info);
86 const FilePath& file_path)
88 file_path_(file_path),
100 FilePath file_path; local
101 const bool is_file = FileURLToFilePath(request->url(), &file_path);
105 if (AccessDisabled(file_path))
116 file_util::EndsWithSeparator(file_path) &&
117 file_path.IsAbsolute())
118 return new URLRequestFileDirJob(request, file_path);
85 URLRequestFileJob(URLRequest* request, const FilePath& file_path) argument
136 AccessDisabled(const FilePath& file_path) argument
[all...]

Completed in 268 milliseconds

1234567