epoc32/include/mw/http/framework/csecuritypolicy.inl
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 epoc32/include/http/framework/csecuritypolicy.inl@2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 
    17 
    18 /**
    19  @file CSecurityPolicy.inl
    20  @warning : This file contains Rose Model ID comments - please do not delete
    21 */
    22 
    23 #ifndef __CSECURITYPOLICY_INL__
    24 #define __CSECURITYPOLICY_INL__
    25 
    26 
    27 inline CSecurityPolicy* CSecurityPolicy::NewL(RStringPool aStringPool)
    28 	{
    29 	_LIT8(KDataTypeName, "security-policy");
    30 
    31 	// CSecurityPolicy ECOM Interface UID = 101F4485
    32 	const TUid KUidSecPolInterface = {0x101F4485};
    33 
    34 	// Set up the parameters which allow ECOM's resolver to pick the right implementation
    35 	TEComResolverParams resParams;
    36 	resParams.SetDataType(KDataTypeName());
    37 
    38 	// Get the instantiation.  Allow ECOM to use the default resolver.  Pass in the init params.
    39 	TAny* ptr = REComSession::CreateImplementationL(KUidSecPolInterface,
    40 								 _FOFF(CSecurityPolicy, iDtor_ID_Key),
    41 								 &aStringPool,
    42 								 resParams);
    43 
    44 	return REINTERPRET_CAST(CSecurityPolicy*, ptr);
    45 	}
    46 
    47 inline CSecurityPolicy::~CSecurityPolicy()
    48 	{
    49 	REComSession::DestroyedImplementation(iDtor_ID_Key);
    50 	}
    51 
    52 inline CSecurityPolicy::CSecurityPolicy(RStringPool aStrPool)
    53 	: iStrPool(aStrPool)
    54 	{
    55 	}
    56 
    57 
    58 
    59 inline void CSecurityPolicy::Reserved1()
    60 	{}
    61 inline void CSecurityPolicy::Reserved2()
    62 	{}
    63 
    64 
    65 #endif // __CSECURITYPOLICY_INL__