Home
last modified time | relevance | path

Searched refs:local_path (Results 1 – 25 of 111) sorted by relevance

12345

/external/chromium_org/chrome/browser/extensions/api/file_handlers/
Dmime_util.cc28 void SniffMimeType(const base::FilePath& local_path, std::string* result) { in SniffMimeType() argument
32 base::ReadFile(local_path, &content[0], content.size()); in SniffMimeType()
37 net::FilePathToFileURL(local_path), in SniffMimeType()
56 const base::FilePath& local_path, in OnGetMimeTypeFromMetadataForNonNativeLocalPathCompleted() argument
73 local_path, in OnGetMimeTypeFromMetadataForNonNativeLocalPathCompleted()
94 const base::FilePath& local_path, in OnGetMimeTypeFromFileForNativeLocalPathCompleted() argument
106 base::Bind(&SniffMimeType, local_path, sniffed_mime_type_ptr), in OnGetMimeTypeFromFileForNativeLocalPathCompleted()
115 const base::FilePath& local_path, in GetMimeTypeForLocalPath() argument
118 if (file_manager::util::IsUnderNonNativeLocalPath(profile, local_path)) { in GetMimeTypeForLocalPath()
124 local_path, in GetMimeTypeForLocalPath()
[all …]
/external/chromium_org/chrome/browser/drive/
Ddrive_uploader_unittest.cc321 base::FilePath local_path; in TEST_F() local
324 temp_dir_.path(), 0, &local_path, &data)); in TEST_F()
330 MockDriveServiceWithUploadExpectation mock_service(local_path, data.size()); in TEST_F()
336 local_path, in TEST_F()
356 base::FilePath local_path; in TEST_F() local
359 temp_dir_.path(), 512 * 1024, &local_path, &data)); in TEST_F()
365 MockDriveServiceWithUploadExpectation mock_service(local_path, data.size()); in TEST_F()
371 local_path, in TEST_F()
393 base::FilePath local_path; in TEST_F() local
396 temp_dir_.path(), 512 * 1024, &local_path, &data)); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/chromeos/drive/file_system/
Dget_file_for_saving_operation_unittest.cc80 base::FilePath local_path; in TEST_F() local
84 &error, &local_path, &entry)); in TEST_F()
100 google_apis::test_util::WriteStringToFile(local_path, "hello"); in TEST_F()
115 base::FilePath local_path; in TEST_F() local
119 &error, &local_path, &entry)); in TEST_F()
126 EXPECT_TRUE(base::GetFileSize(local_path, &size)); in TEST_F()
139 base::FilePath local_path; in TEST_F() local
143 &error, &local_path, &entry)); in TEST_F()
Dtruncate_operation_unittest.cc49 base::FilePath local_path; in TEST_F() local
56 GetLocalId(file_in_root), &local_path), in TEST_F()
63 base::GetFileSize(local_path, &local_file_size); in TEST_F()
112 base::FilePath local_path; in TEST_F() local
119 GetLocalId(file_in_root), &local_path), in TEST_F()
126 ASSERT_TRUE(base::ReadFileToString(local_path, &content)); in TEST_F()
Ddownload_operation_unittest.cc283 base::FilePath local_path, local_path_dontcare; in TEST_F() local
290 &initialized_error, &local_path, &entry), in TEST_F()
300 ASSERT_TRUE(local_path.empty()); in TEST_F()
316 base::FilePath local_path, local_path_dontcare; in TEST_F() local
323 &initialized_error, &local_path, &entry), in TEST_F()
333 ASSERT_TRUE(!local_path.empty()); in TEST_F()
338 base::GetFileSize(local_path, &local_file_size); in TEST_F()
/external/chromium_org/tools/telemetry/telemetry/core/
Dextension_to_load.py54 def local_path(self): member in ExtensionToLoad
59 @local_path.setter
60 def local_path(self, local_path): member in ExtensionToLoad
61 self._local_path = local_path
/external/chromium_org/ui/shell_dialogs/
Dselected_file_info.cc14 local_path(in_local_path) { in SelectedFileInfo()
15 if (local_path.empty()) in SelectedFileInfo()
16 local_path = file_path; in SelectedFileInfo()
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/test/
Dfunctional.rb25 def local_path( *parts ) method
30 local_path( name )
110 path = local_path( name.to_s )
162 def local_path( *args ) method in ANTLR3.Test.Functional
163 self.class.local_path( *args )
/external/chromium_org/components/policy/resources/
DPRESUBMIT.py29 local_path = input_api.PresubmitLocalPath()
30 filepath = input_api.os_path.join(local_path, 'policy_templates.json')
36 input_api.os_path.join(local_path, input_api.os_path.pardir, 'tools'))
106 local_path = input_api.PresubmitLocalPath()
107 template_path = os_path.join(local_path, 'policy_templates.json')
/external/chromium_org/tools/telemetry/telemetry/util/
Dcloud_storage.py178 def Get(bucket, remote_path, local_path): argument
180 logging.info('Downloading %s to %s' % (url, local_path))
181 _RunCommand(['cp', url, local_path])
184 def Insert(bucket, remote_path, local_path, publicly_readable=False): argument
191 command_and_args += [local_path, url]
192 logging.info('Uploading %s to %s%s' % (local_path, url, extra_info))
/external/chromium_org/third_party/
DPRESUBMIT.py42 local_path = f.LocalPath()
43 if input_api.os_path.dirname(local_path) == 'third_party':
45 if local_path.startswith('third_party' + input_api.os_path.sep):
47 if local_path.endswith("README.chromium"):
/external/chromium_org/chrome/browser/chromeos/file_system_provider/
Dmount_path_util.cc64 bool IsFileSystemProviderLocalPath(const base::FilePath& local_path) { in IsFileSystemProviderLocalPath() argument
66 local_path.GetComponents(&components); in IsFileSystemProviderLocalPath()
136 const base::FilePath& local_path) in LocalPathParser() argument
137 : profile_(profile), local_path_(local_path), file_system_(NULL) { in LocalPathParser()
Dmount_path_util.h28 bool IsFileSystemProviderLocalPath(const base::FilePath& local_path);
58 LocalPathParser(Profile* profile, const base::FilePath& local_path);
/external/chromium_org/chrome/browser/chromeos/fileapi/
Dfile_system_backend_unittest.cc243 const base::FilePath::CharType* const local_path; in TEST() member
264 base::FilePath local_path(kTestCases[i].local_path); in TEST() local
266 backend.GetVirtualPath(local_path, &virtual_path)) in TEST()
267 << "Resolving " << kTestCases[i].local_path; in TEST()
276 << "Resolving " << kTestCases[i].local_path; in TEST()
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/
Dremote_change_processor_wrapper.cc26 const base::FilePath& local_path, in ApplyRemoteChange() argument
31 change, local_path, url, callback); in ApplyRemoteChange()
Dremote_change_processor_on_worker.cc49 const base::FilePath& local_path, in ApplyRemoteChange() argument
59 local_path, in ApplyRemoteChange()
/external/chromium_org/storage/browser/fileapi/
Dobfuscated_file_util.cc419 base::FilePath* local_path) { in GetLocalFilePath() argument
432 *local_path = DataPathToLocalPath(url, file_info.data_path); in GetLocalFilePath()
434 if (local_path->empty()) in GetLocalFilePath()
471 base::FilePath local_path; in Truncate() local
473 GetFileInfo(context, url, &file_info, &local_path); in Truncate()
480 error = NativeFileUtil::Truncate(local_path, length); in Truncate()
722 base::FilePath local_path; in DeleteFile() local
724 db, context, url, file_id, &file_info, &platform_file_info, &local_path); in DeleteFile()
747 error = NativeFileUtil::DeleteFile(local_path); in DeleteFile()
1013 base::FilePath local_path = DataPathToLocalPath(url, local_info->data_path); in GetFileInfoInternal() local
[all …]
/external/chromium_org/chrome/browser/chromeos/drive/fileapi/
Dfileapi_worker.cc104 const base::FilePath& local_path, in RunCreateSnapshotFileCallback() argument
134 callback.Run(base::File::FILE_OK, file_info, local_path, scope_out_policy); in RunCreateSnapshotFileCallback()
141 const base::FilePath& local_path, in RunCreateWritableSnapshotFileCallback() argument
144 callback.Run(FileErrorToBaseFileError(error), local_path, close_callback); in RunCreateWritableSnapshotFileCallback()
162 const base::FilePath& local_path, in OpenFileAfterFileSystemOpenFile() argument
189 base::Bind(&OpenFile, local_path, file_flags), in OpenFileAfterFileSystemOpenFile()
/external/chromium_org/chrome/browser/chromeos/extensions/file_manager/
Dprivate_api_file_system.h79 const base::FilePath& local_path,
102 const base::FilePath& local_path,
120 const base::FilePath& local_path,
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/config/
Durls.py32 def view_source_url(local_path): argument
33 return "http://trac.webkit.org/browser/trunk/%s" % local_path
/external/chromium_org/content/public/test/
Dsandbox_file_system_test_helper.cc78 base::FilePath local_path; in GetLocalPath() local
80 file_util_->GetLocalFilePath(context.get(), CreateURL(path), &local_path); in GetLocalPath()
81 return local_path; in GetLocalPath()
/external/chromium_org/content/browser/fileapi/
Dobfuscated_file_util_unittest.cc322 base::FilePath local_path; in CheckFileAndCloseHandle() local
324 ofu()->GetLocalFilePath(context.get(), url, &local_path)); in CheckFileAndCloseHandle()
330 EXPECT_EQ(data_path, local_path); in CheckFileAndCloseHandle()
351 EXPECT_EQ(data_path, local_path); in CheckFileAndCloseHandle()
518 base::FilePath local_path; in TestTouchHelper() local
522 context.get(), url, &file_info, &local_path)); in TestTouchHelper()
537 ofu()->GetFileInfo(context.get(), url, &file_info, &local_path)); in TestTouchHelper()
852 base::FilePath local_path; in TEST_F() local
854 ofu()->GetLocalFilePath(context.get(), url, &local_path)); in TEST_F()
855 EXPECT_TRUE(base::PathExists(local_path)); in TEST_F()
[all …]
/external/chromium_org/tools/android/checkstyle/
Dcheckstyle.py62 local_path = input_api.PresubmitLocalPath()
67 rel_path = os.path.relpath(full_path, local_path)
/external/chromium_org/tools/code_coverage/
Dcroc.py76 self.local_path = None # Local path to file
477 local_path = dirpath + '/' + f
479 covf = self.GetCoveredFile(local_path, add=True)
484 covf.local_path = local_path
496 lines = self.scan_file(covf.local_path, covf.attrs.get('language'))
/external/chromium_org/content/shell/browser/
Dshell_browser_main.cc82 base::FilePath local_path; in GetURLForLayoutTest() local
86 if (net::FileURLToFilePath(test_url, &local_path)) in GetURLForLayoutTest()
87 *current_working_directory = local_path.DirName(); in GetURLForLayoutTest()

12345