httpfilters/cookie/ManagerSrc/CookieArray.cpp
branchRCL_3
changeset 15 bdd8a827a7de
parent 7 2611c08ee28e
equal deleted inserted replaced
13:26ce6fb6aee2 15:bdd8a827a7de
  1038 // ---------------------------------------------------------
  1038 // ---------------------------------------------------------
  1039 // CCookieArray::GetCookies
  1039 // CCookieArray::GetCookies
  1040 // ---------------------------------------------------------
  1040 // ---------------------------------------------------------
  1041 //
  1041 //
  1042 TInt CCookieArray::GetCookies( const TDesC8& aRequestUri,
  1042 TInt CCookieArray::GetCookies( const TDesC8& aRequestUri,
  1043                                RPointerArray<CCookie>& aCookies, TBool& aFound )// harendra: aFound is redundant
  1043                                RPointerArray<CCookie>& aCookies, TBool& aFound )
  1044     {
  1044     {
  1045     CLOG( ( ECookieArray, 0,
  1045     CLOG( ( ECookieArray, 0,
  1046             _L( "-> CCookieArray::GetCookies for an URI" ) ) );
  1046             _L( "-> CCookieArray::GetCookies for an URI" ) ) );
  1047     TUriParser8 uriParser;
  1047     TUriParser8 uriParser;
  1048     TInt err = uriParser.Parse( aRequestUri );
  1048     TInt err = uriParser.Parse( aRequestUri );
  1090             if ( PathMatch( requestPath, cookiePath ) &&
  1090             if ( PathMatch( requestPath, cookiePath ) &&
  1091                 DomainMatch( requestDomain, cookieDomain, ETrue ) &&
  1091                 DomainMatch( requestDomain, cookieDomain, ETrue ) &&
  1092                 PortMatch( requestPort, cookiePort ) &&
  1092                 PortMatch( requestPort, cookiePort ) &&
  1093                 SecureMatch( requestScheme, *iCookies[i] ) )
  1093                 SecureMatch( requestScheme, *iCookies[i] ) )
  1094                 {
  1094                 {
  1095                 CCookie* clone = CCookie::CloneL( *iCookies[i] );
  1095                 CCookie* clone = CCookie::CloneL( *iCookies[i],requestDomain,requestPath,requestPort );
  1096                 CleanupStack::PushL( clone );
  1096                 CleanupStack::PushL( clone );
  1097                 err = aCookies.Append(clone);
  1097                 err = aCookies.Append(clone);
  1098                 CleanupStack::Pop(clone);
  1098                 CleanupStack::Pop(clone);
  1099                 aFound = ETrue;
  1099                 aFound = ETrue;
  1100                 }
  1100                 }