Home
last modified time | relevance | path

Searched refs:FileError (Results 1 – 25 of 190) sorted by relevance

12345678

/external/chromium_org/third_party/WebKit/Source/core/fileapi/
DFileError.cpp39 const char FileError::abortErrorMessage[] = "An ongoing operation was aborted, typically with a cal…
40 const char FileError::encodingErrorMessage[] = "A URI supplied to the API was malformed, or the res…
41 const char FileError::invalidStateErrorMessage[] = "An operation that depends on state cached in an…
42 const char FileError::noModificationAllowedErrorMessage[] = "An attempt was made to write to a file…
43 const char FileError::notFoundErrorMessage[] = "A requested file or directory could not be found at…
44 const char FileError::notReadableErrorMessage[] = "The requested file could not be read, typically …
45 const char FileError::pathExistsErrorMessage[] = "An attempt was made to create a file or directory…
46 const char FileError::quotaExceededErrorMessage[] = "The operation failed because it would cause th…
47 const char FileError::securityErrorMessage[] = "It was determined that certain files are unsafe for…
48 const char FileError::syntaxErrorMessage[] = "An invalid or unsupported argument was given, like an…
[all …]
DFileReaderLoader.cpp69 , m_errorCode(FileError::OK) in FileReaderLoader()
89 failed(FileError::SECURITY_ERR); in startInternal()
144 m_errorCode = FileError::ABORT_ERR; in cancel()
201 failed(FileError::NOT_READABLE_ERR); in didReceiveResponse()
214 failed(FileError::NOT_READABLE_ERR); in didReceiveResponse()
244 failed(FileError::NOT_READABLE_ERR); in didReceiveData()
276 if (m_errorCode == FileError::ABORT_ERR) in didFail()
279 failed(FileError::NOT_READABLE_ERR); in didFail()
282 void FileReaderLoader::failed(FileError::ErrorCode errorCode) in failed()
290 FileError::ErrorCode FileReaderLoader::httpStatusCodeToErrorCode(int httpStatusCode) in httpStatusCodeToErrorCode()
[all …]
DFileError.h43 class FileError : public DOMError {
73 static PassRefPtr<FileError> create(ErrorCode code) { return adoptRef(new FileError(code)); } in create()
80 explicit FileError(ErrorCode);
DFileReaderSync.cpp52 exceptionState.throwDOMException(NotFoundError, FileError::notFoundErrorMessage); in readAsArrayBuffer()
65 exceptionState.throwDOMException(NotFoundError, FileError::notFoundErrorMessage); in readAsBinaryString()
77 exceptionState.throwDOMException(NotFoundError, FileError::notFoundErrorMessage); in readAsText()
90 exceptionState.throwDOMException(NotFoundError, FileError::notFoundErrorMessage); in readAsDataURL()
104 FileError::throwDOMException(exceptionState, loader.errorCode()); in startLoading()
/external/chromium_org/chrome/browser/chromeos/drive/
Dresource_metadata.h29 typedef base::Callback<void(FileError error,
33 typedef base::Callback<void(FileError error,
53 FileError Initialize() WARN_UNUSED_RESULT;
61 FileError Reset();
67 FileError SetLargestChangestamp(int64 value);
70 FileError AddEntry(const ResourceEntry& entry, std::string* out_id);
73 FileError RemoveEntry(const std::string& id);
76 FileError GetResourceEntryById(const std::string& id,
87 FileError GetResourceEntryByPath(const base::FilePath& file_path,
97 FileError ReadDirectoryByPath(const base::FilePath& file_path,
[all …]
Dfile_cache.h86 FileError GetFile(const std::string& id, base::FilePath* cache_file_path);
90 FileError Store(const std::string& id,
96 FileError Pin(const std::string& id);
99 FileError Unpin(const std::string& id);
102 FileError MarkAsMounted(const std::string& id,
106 FileError MarkAsUnmounted(const base::FilePath& file_path);
109 FileError MarkDirty(const std::string& id);
112 FileError ClearDirty(const std::string& id, const std::string& md5);
115 FileError Remove(const std::string& id);
Dchange_list_loader.h50 FileError error)> LoadChangeListCallback;
130 void OnChangeListLoadComplete(FileError error);
136 FileError error);
163 FileError error);
178 FileError error,
204 FileError error,
219 FileError error);
226 FileError error,
234 FileError error);
258 FileError error);
Dfile_errors.h14 enum FileError { enum
37 typedef base::Callback<void(FileError error)> FileOperationCallback;
40 std::string FileErrorToString(FileError error);
43 base::PlatformFileError FileErrorToPlatformError(FileError error);
46 FileError GDataToFileError(google_apis::GDataErrorCode status);
Dfile_system.h180 void ReloadAfterReset(const FileOperationCallback& callback, FileError error);
192 FileError load_error);
196 FileError error);
200 FileError error);
210 void OnUpdateChecked(FileError error);
218 FileError error);
221 FileError error);
230 FileError error,
239 FileError error);
242 FileError error,
[all …]
Dfake_file_system_unittest.cc38 FileError initialize_error = FILE_ERROR_FAILED; in TEST_F()
43 FileError completion_error = FILE_ERROR_FAILED; in TEST_F()
101 FileError initialize_error = FILE_ERROR_FAILED; in TEST_F()
105 FileError completion_error = FILE_ERROR_FAILED; in TEST_F()
120 FileError error = FILE_ERROR_FAILED; in TEST_F()
134 FileError error = FILE_ERROR_FAILED; in TEST_F()
149 FileError error = FILE_ERROR_FAILED; in TEST_F()
Dresource_metadata.cc42 FileError error) { in RunGetResourceEntryCallback()
53 FileError error) { in RunReadDirectoryCallback()
74 FileError ResourceMetadata::Initialize() { in Initialize()
96 FileError ResourceMetadata::Reset() { in Reset()
163 FileError ResourceMetadata::SetLargestChangestamp(int64 value) { in SetLargestChangestamp()
173 FileError ResourceMetadata::AddEntry(const ResourceEntry& entry, in AddEntry()
208 FileError ResourceMetadata::RemoveEntry(const std::string& id) { in RemoveEntry()
229 FileError ResourceMetadata::GetResourceEntryById(const std::string& id, in GetResourceEntryById()
257 FileError ResourceMetadata::GetResourceEntryByPath(const base::FilePath& path, in GetResourceEntryByPath()
263 FileError error = GetIdByPath(path, &id); in GetResourceEntryByPath()
[all …]
Dfile_system_interface.h63 typedef base::Callback<void(FileError error,
74 typedef base::Callback<void(FileError error,
83 FileError error,
90 FileError error,
99 typedef base::Callback<void(FileError error,
105 typedef base::Callback<void(FileError error,
110 typedef base::Callback<void(FileError error,
118 typedef base::Callback<void(FileError error,
/external/chromium_org/third_party/WebKit/Source/modules/filesystem/
DFileWriter.cpp96 setError(FileError::INVALID_STATE_ERR, exceptionState); in write()
100 setError(FileError::TYPE_MISMATCH_ERR, exceptionState); in write()
104 setError(FileError::SECURITY_ERR, exceptionState); in write()
127 setError(FileError::INVALID_STATE_ERR, exceptionState); in seek()
141 setError(FileError::INVALID_STATE_ERR, exceptionState); in truncate()
145 setError(FileError::SECURITY_ERR, exceptionState); in truncate()
171 signalCompletion(FileError::ABORT_ERR); in abort()
206 signalCompletion(FileError::OK); in didWrite()
223 signalCompletion(FileError::OK); in didTruncate()
230 ASSERT(static_cast<FileError::ErrorCode>(code) != FileError::OK); in didFail()
[all …]
DFileWriterSync.cpp48 exceptionState.throwDOMException(TypeMismatchError, FileError::typeMismatchErrorMessage); in write()
56 FileError::throwDOMException(exceptionState, m_error); in write()
76 exceptionState.throwDOMException(InvalidStateError, FileError::invalidStateErrorMessage); in truncate()
83 FileError::throwDOMException(exceptionState, m_error); in truncate()
93 ASSERT(m_error == FileError::OK); in didWrite()
104 ASSERT(m_error == FileError::OK); in didTruncate()
113 ASSERT(m_error == FileError::OK); in didFail()
114 m_error = static_cast<FileError::ErrorCode>(error); in didFail()
122 : m_error(FileError::OK) in FileWriterSync()
133 m_error = FileError::OK; in prepareForWrite()
DDOMWindowFileSystem.cpp61 …DOMFileSystem::scheduleCallback(document, errorCallback, FileError::create(FileError::SECURITY_ERR… in webkitRequestFileSystem()
67 …DOMFileSystem::scheduleCallback(document, errorCallback, FileError::create(FileError::INVALID_MODI… in webkitRequestFileSystem()
86 …DOMFileSystem::scheduleCallback(document, errorCallback, FileError::create(FileError::SECURITY_ERR… in webkitResolveLocalFileSystemURL()
91 …DOMFileSystem::scheduleCallback(document, errorCallback, FileError::create(FileError::ENCODING_ERR… in webkitResolveLocalFileSystemURL()
DWorkerGlobalScopeFileSystem.cpp52 …DOMFileSystem::scheduleCallback(worker, errorCallback, FileError::create(FileError::SECURITY_ERR)); in webkitRequestFileSystem()
58 …DOMFileSystem::scheduleCallback(worker, errorCallback, FileError::create(FileError::INVALID_MODIFI… in webkitRequestFileSystem()
69 exceptionState.throwSecurityError(FileError::securityErrorMessage); in webkitRequestFileSystemSync()
92 …DOMFileSystem::scheduleCallback(worker, errorCallback, FileError::create(FileError::SECURITY_ERR)); in webkitResolveLocalFileSystemURL()
97 …DOMFileSystem::scheduleCallback(worker, errorCallback, FileError::create(FileError::ENCODING_ERR)); in webkitResolveLocalFileSystemURL()
109 exceptionState.throwSecurityError(FileError::securityErrorMessage); in webkitResolveLocalFileSystemSyncURL()
DDOMFileSystemSync.cpp68 void DOMFileSystemSync::reportError(PassOwnPtr<ErrorCallback> errorCallback, PassRefPtr<FileError> … in reportError()
199 static PassOwnPtr<LocalErrorCallback> create(FileError::ErrorCode& errorCode) in create()
204 void handleEvent(FileError* error) in handleEvent()
206 ASSERT(error->code() != FileError::OK); in handleEvent()
211 explicit LocalErrorCallback(FileError::ErrorCode& errorCode) in LocalErrorCallback()
216 FileError::ErrorCode& m_errorCode;
227 FileError::ErrorCode errorCode = FileError::OK; in createWriter()
234 if (errorCode != FileError::OK) { in createWriter()
235 FileError::throwDOMException(exceptionState, errorCode); in createWriter()
DDOMFileSystemBase.cpp228 reportError(errorCallback, FileError::create(FileError::INVALID_MODIFICATION_ERR)); in move()
242 reportError(errorCallback, FileError::create(FileError::INVALID_MODIFICATION_ERR)); in copy()
257 reportError(errorCallback, FileError::create(FileError::INVALID_MODIFICATION_ERR)); in remove()
272 reportError(errorCallback, FileError::create(FileError::INVALID_MODIFICATION_ERR)); in removeRecursively()
293 reportError(errorCallback, FileError::create(FileError::INVALID_MODIFICATION_ERR)); in getFile()
310 reportError(errorCallback, FileError::create(FileError::INVALID_MODIFICATION_ERR)); in getDirectory()
DSyncCallbackHelper.h90 : m_errorCode(FileError::OK)
98 FileError::throwDOMException(exceptionState, m_errorCode);
116 m_helper->setError(FileError::OK);
139 virtual void handleEvent(FileError* error)
153 void setError(FileError::ErrorCode code)
166 FileError::ErrorCode m_errorCode;
/external/chromium_org/third_party/WebKit/Source/core/inspector/
DInspectorFileSystemAgent.cpp127 bool didHitError(FileError* error) in didHitError()
135 …void reportResult(FileError::ErrorCode errorCode, PassRefPtr<TypeBuilder::FileSystem::Entry> entry… in reportResult()
156 errorCallback->handleEvent(FileError::create(FileError::SYNTAX_ERR).get()); in start()
162 errorCallback->handleEvent(FileError::create(FileError::SYNTAX_ERR).get()); in start()
177 reportResult(static_cast<FileError::ErrorCode>(0), result); in didGetEntry()
191 reportResult(FileError::ABORT_ERR); in ~DirectoryContentRequest()
197 bool didHitError(FileError* error) in didHitError()
206 …void reportResult(FileError::ErrorCode errorCode, PassRefPtr<Array<TypeBuilder::FileSystem::Entry>… in reportResult()
238 reportResult(FileError::TYPE_MISMATCH_ERR); in didGetEntry()
251 reportResult(FileError::ABORT_ERR); in readDirectoryEntries()
[all …]
/external/chromium_org/content/test/data/fileapi/
Dcommon.js35 case FileError.QUOTA_EXCEEDED_ERR:
37 case FileError.NOT_FOUND_ERR:
39 case FileError.SECURITY_ERR:
41 case FileError.INVALID_MODIFICATION_ERR:
43 case FileError.INVALID_STATE_ERR:
/external/chromium_org/chrome/browser/chromeos/extensions/file_manager/
Dprivate_api_drive.h46 void OnGetFileInfo(drive::FileError error,
52 void CompleteGetFileProperties(drive::FileError error);
74 void OnPinStateSet(drive::FileError error);
106 void OnFileReady(drive::FileError error,
141 void OnSearch(drive::FileError error,
161 void OnSearchMetadata(drive::FileError error,
212 void OnGetShareUrl(drive::FileError error, const GURL& share_url);
/external/chromium_org/chrome/browser/chromeos/drive/file_system/
Doperation_test_base.cc91 FileError error = FILE_ERROR_FAILED; in SetUp()
129 FileError OperationTestBase::GetLocalResourceEntry(const base::FilePath& path, in GetLocalResourceEntry()
131 FileError error = FILE_ERROR_FAILED; in GetLocalResourceEntry()
142 FileError OperationTestBase::GetLocalResourceEntryById( in GetLocalResourceEntryById()
145 FileError error = FILE_ERROR_FAILED; in GetLocalResourceEntryById()
158 FileError error = FILE_ERROR_FAILED; in GetLocalId()
170 FileError OperationTestBase::CheckForUpdates() { in CheckForUpdates()
171 FileError error = FILE_ERROR_FAILED; in CheckForUpdates()
Dcopy_operation.cc30 FileError PrepareCopy(internal::ResourceMetadata* metadata, in PrepareCopy()
35 FileError error = metadata->GetResourceEntryByPath(src_path, src_entry); in PrepareCopy()
63 FileError UpdateLocalStateForServerSideCopy( in UpdateLocalStateForServerSideCopy()
75 FileError error = metadata->GetIdByResourceId(parent_resource_id, in UpdateLocalStateForServerSideCopy()
96 FileError UpdateLocalStateForScheduleTransfer( in UpdateLocalStateForScheduleTransfer()
102 FileError error = metadata->GetIdByPath(remote_dest_path, local_id); in UpdateLocalStateForScheduleTransfer()
126 FileError PrepareTransferFileFromLocalToRemote( in PrepareTransferFileFromLocalToRemote()
133 FileError error = metadata->GetResourceEntryByPath( in PrepareTransferFileFromLocalToRemote()
213 FileError error) { in CopyAfterPrepare()
268 FileError error) { in TransferFileFromLocalToRemoteAfterPrepare()
[all …]
Dcreate_file_operation.cc31 FileError CheckPreConditionForCreateFile(internal::ResourceMetadata* metadata, in CheckPreConditionForCreateFile()
41 FileError error = metadata->GetResourceEntryByPath(file_path, &entry); in CheckPreConditionForCreateFile()
77 FileError UpdateLocalStateForCreateFile( in UpdateLocalStateForCreateFile()
94 FileError error = metadata->GetIdByResourceId(parent_resource_id, in UpdateLocalStateForCreateFile()
115 FileError cache_store_error = FILE_ERROR_FAILED; in UpdateLocalStateForCreateFile()
185 FileError error) { in CreateFileAfterCheckPreCondition()
216 FileError error = GDataToFileError(gdata_error); in CreateFileAfterUpload()
241 FileError error) { in CreateFileAfterUpdateLocalState()

12345678