Changeset 125677 in webkit
- Timestamp:
- Aug 15, 2012 8:56:28 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r125673 r125677 1 2012-08-15 Taiju Tsuiki <tzik@chromium.org> 2 3 Web Inspector: Use default parameter on reportResult in InspectorFileSystemAgent 4 https://bugs.webkit.org/show_bug.cgi?id=93930 5 6 Reviewed by Vsevolod Vlasov. 7 8 No functional change. 9 10 * inspector/InspectorFileSystemAgent.cpp: 11 (WebCore): 12 1 13 2012-08-15 Vsevolod Vlasov <vsevik@chromium.org> 2 14 -
trunk/Source/WebCore/inspector/InspectorFileSystemAgent.cpp
r122652 r125677 156 156 bool didGetEntry(Entry*); 157 157 158 void reportResult(FileError::ErrorCode errorCode, PassRefPtr<TypeBuilder::FileSystem::Entry> entry )158 void reportResult(FileError::ErrorCode errorCode, PassRefPtr<TypeBuilder::FileSystem::Entry> entry = 0) 159 159 { 160 160 if (!m_frontendProvider || !m_frontendProvider->frontend()) … … 176 176 bool FileSystemRootRequest::didHitError(FileError* error) 177 177 { 178 reportResult(error->code() , 0);178 reportResult(error->code()); 179 179 return true; 180 180 } … … 209 209 virtual ~DirectoryContentRequest() 210 210 { 211 reportResult(FileError::ABORT_ERR , 0);211 reportResult(FileError::ABORT_ERR); 212 212 } 213 213 … … 217 217 bool didHitError(FileError* error) 218 218 { 219 reportResult(error->code() , 0);219 reportResult(error->code()); 220 220 return true; 221 221 } … … 224 224 bool didReadDirectoryEntries(EntryArray*); 225 225 226 void reportResult(FileError::ErrorCode errorCode, PassRefPtr<Array<TypeBuilder::FileSystem::Entry> > entries )226 void reportResult(FileError::ErrorCode errorCode, PassRefPtr<Array<TypeBuilder::FileSystem::Entry> > entries = 0) 227 227 { 228 228 if (!m_frontendProvider || !m_frontendProvider->frontend()) … … 253 253 String path; 254 254 if (!DOMFileSystemBase::crackFileSystemURL(m_url, type, path)) { 255 reportResult(FileError::SYNTAX_ERR , 0);255 reportResult(FileError::SYNTAX_ERR); 256 256 return; 257 257 } … … 267 267 { 268 268 if (!entry->isDirectory()) { 269 reportResult(FileError::TYPE_MISMATCH_ERR , 0);269 reportResult(FileError::TYPE_MISMATCH_ERR); 270 270 return true; 271 271 } … … 280 280 { 281 281 if (!m_directoryReader->filesystem()->scriptExecutionContext()) { 282 reportResult(FileError::ABORT_ERR , 0);282 reportResult(FileError::ABORT_ERR); 283 283 return; 284 284 } … … 341 341 virtual ~MetadataRequest() 342 342 { 343 reportResult(FileError::ABORT_ERR, 0); 344 } 345 343 reportResult(FileError::ABORT_ERR); 344 } 345 346 void start(ScriptExecutionContext*); 347 348 private: 346 349 bool didHitError(FileError* error) 347 350 { 348 reportResult(error->code() , 0);351 reportResult(error->code()); 349 352 return true; 350 353 } 351 354 352 void start(ScriptExecutionContext*);353 355 bool didGetEntry(Entry*); 354 356 bool didGetMetadata(Metadata*); 355 357 356 void reportResult(FileError::ErrorCode errorCode, PassRefPtr<TypeBuilder::FileSystem::Metadata> metadata )358 void reportResult(FileError::ErrorCode errorCode, PassRefPtr<TypeBuilder::FileSystem::Metadata> metadata = 0) 357 359 { 358 360 if (!m_frontendProvider || !m_frontendProvider->frontend()) … … 362 364 } 363 365 364 private:365 366 MetadataRequest(PassRefPtr<FrontendProvider> frontendProvider, int requestId, const String& url) 366 367 : m_frontendProvider(frontendProvider) … … 390 391 { 391 392 if (!entry->filesystem()->scriptExecutionContext()) { 392 reportResult(FileError::ABORT_ERR , 0);393 reportResult(FileError::ABORT_ERR); 393 394 return true; 394 395 } … … 421 422 virtual ~FileContentRequest() 422 423 { 423 reportResult(FileError::ABORT_ERR , 0, 0);424 reportResult(FileError::ABORT_ERR); 424 425 } 425 426 426 427 void start(ScriptExecutionContext*); 427 428 428 429 429 virtual bool operator==(const EventListener& other) OVERRIDE … … 443 443 bool didHitError(FileError* error) 444 444 { 445 reportResult(error->code() , 0, 0);445 reportResult(error->code()); 446 446 return true; 447 447 } … … 451 451 void didRead(); 452 452 453 void reportResult(FileError::ErrorCode errorCode, const String* result , const String* charset)453 void reportResult(FileError::ErrorCode errorCode, const String* result = 0, const String* charset = 0) 454 454 { 455 455 if (!m_frontendProvider || !m_frontendProvider->frontend()) … … 488 488 String path; 489 489 if (!DOMFileSystemBase::crackFileSystemURL(m_url, type, path)) { 490 reportResult(FileError::SYNTAX_ERR , 0, 0);490 reportResult(FileError::SYNTAX_ERR); 491 491 return; 492 492 } … … 502 502 { 503 503 if (entry->isDirectory()) { 504 reportResult(FileError::TYPE_MISMATCH_ERR , 0, 0);504 reportResult(FileError::TYPE_MISMATCH_ERR); 505 505 return true; 506 506 } 507 507 508 508 if (!entry->filesystem()->scriptExecutionContext()) { 509 reportResult(FileError::ABORT_ERR , 0, 0);509 reportResult(FileError::ABORT_ERR); 510 510 return true; 511 511 } … … 549 549 } 550 550 551 } 551 } // anonymous namespace 552 552 553 553 // static
Note: See TracChangeset
for help on using the changeset viewer.