equal
deleted
inserted
replaced
20 #include "HttpCacheStreamHandler.h" |
20 #include "HttpCacheStreamHandler.h" |
21 #include "HttpCacheEntry.h" |
21 #include "HttpCacheEntry.h" |
22 #include "HttpCacheUtil.h" |
22 #include "HttpCacheUtil.h" |
23 #include "HttpCacheHandler.h" |
23 #include "HttpCacheHandler.h" |
24 #include <centralrepository.h> |
24 #include <centralrepository.h> |
25 #include <SysUtilDomainCRKeys.h> |
25 #include <sysutildomaincrkeys.h> |
26 |
26 |
27 // EXTERNAL DATA STRUCTURES |
27 // EXTERNAL DATA STRUCTURES |
28 |
28 |
29 // EXTERNAL FUNCTION PROTOTYPES |
29 // EXTERNAL FUNCTION PROTOTYPES |
30 |
30 |
476 |
476 |
477 return ( saveOk == KErrNone ); |
477 return ( saveOk == KErrNone ); |
478 } |
478 } |
479 |
479 |
480 // ----------------------------------------------------------------------------- |
480 // ----------------------------------------------------------------------------- |
481 // CHttpCacheStreamHandler::CancelFlush |
|
482 // |
|
483 // ----------------------------------------------------------------------------- |
|
484 // |
|
485 void CHttpCacheStreamHandler::CancelFlush(CHttpCacheEntry& aEntry) |
|
486 { |
|
487 aEntry.CancelBodyWrite(); |
|
488 } |
|
489 |
|
490 |
|
491 // ----------------------------------------------------------------------------- |
|
492 // CHttpCacheStreamHandler::FlushAsync |
481 // CHttpCacheStreamHandler::FlushAsync |
493 // |
482 // |
494 // ----------------------------------------------------------------------------- |
483 // ----------------------------------------------------------------------------- |
495 // |
484 // |
496 TInt CHttpCacheStreamHandler::FlushAsync(CHttpCacheEntry& aEntry, TRequestStatus& aStatus) |
485 TInt CHttpCacheStreamHandler::FlushAsync(CHttpCacheEntry& aEntry, TRequestStatus& aStatus) |
521 HttpCacheUtil::WriteLog(0, _L("CACHEPOSTPONE: FAILED FlushAsync.")); |
510 HttpCacheUtil::WriteLog(0, _L("CACHEPOSTPONE: FAILED FlushAsync.")); |
522 #endif |
511 #endif |
523 // !enoughSpace |
512 // !enoughSpace |
524 saveOk = KErrDiskFull; |
513 saveOk = KErrDiskFull; |
525 aEntry.BodyData().Reset(); |
514 aEntry.BodyData().Reset(); |
526 TRequestStatus *stat = &aStatus; |
|
527 User::RequestComplete(stat, saveOk); |
|
528 } |
515 } |
529 } |
516 } |
530 else |
517 else |
531 { |
518 { |
532 #ifdef __CACHELOG__ |
519 #ifdef __CACHELOG__ |