1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
31 class CX509Certificate; |
31 class CX509Certificate; |
32 class CX500DistinguishedName; |
32 class CX500DistinguishedName; |
33 class TCertInfo; |
33 class TCertInfo; |
34 class TDNInfo; |
34 class TDNInfo; |
35 class CHttpPipelineFallback; |
35 class CHttpPipelineFallback; |
|
36 |
|
37 /** |
|
38 * Enumeration for NTLM authentication state. |
|
39 */ |
|
40 enum { |
|
41 ENtlmIdle, |
|
42 ENtlmNegotiate, |
|
43 ENtlmAuthenticate |
|
44 }; |
36 |
45 |
37 class CHttpClientHandler : public CProtocolHandler, |
46 class CHttpClientHandler : public CProtocolHandler, |
38 public MConnectionPrefsProvider, |
47 public MConnectionPrefsProvider, |
39 public MRxDataObserver, |
48 public MRxDataObserver, |
40 public MHttpBatchingPropertiesCallback, |
49 public MHttpBatchingPropertiesCallback, |
91 void CreateRequestUriL(TInt aMethodIndex, RHTTPTransaction aTrans, TPtrC8& aHost, TInt& aPort); |
100 void CreateRequestUriL(TInt aMethodIndex, RHTTPTransaction aTrans, TPtrC8& aHost, TInt& aPort); |
92 TBool SetHostHeaderL(RHTTPTransaction aTrans, const TDesC8& aHost, TInt aPort); |
101 TBool SetHostHeaderL(RHTTPTransaction aTrans, const TDesC8& aHost, TInt aPort); |
93 void AddTunnelInfoL(RHTTPTransaction aTrans, const TDesC8& aHost, TInt aPort); |
102 void AddTunnelInfoL(RHTTPTransaction aTrans, const TDesC8& aHost, TInt aPort); |
94 TBool SelectConnectionManagerL(const CHttpConnectionInfo& aConnectionInfo, RHTTPTransaction aTrans, TBool aCanPipeline, CHttpConnectionManager *&aManager); |
103 TBool SelectConnectionManagerL(const CHttpConnectionInfo& aConnectionInfo, RHTTPTransaction aTrans, TBool aCanPipeline, CHttpConnectionManager *&aManager); |
95 CHttpConnectionManager* SelectTunnelConnectionL(const CHttpConnectionInfo& aConnectionInfo, RHTTPTransaction aTrans, TBool aCanPipeline); |
104 CHttpConnectionManager* SelectTunnelConnectionL(const CHttpConnectionInfo& aConnectionInfo, RHTTPTransaction aTrans, TBool aCanPipeline); |
|
105 CHttpConnectionManager* SelectNtlmConnectionL(const CHttpConnectionInfo& aConnectionInfo,RHTTPTransaction aTrans); |
96 TInt MaxNumConnectionManagers() const; |
106 TInt MaxNumConnectionManagers() const; |
97 void SetupProxyInformation(RHTTPTransaction aTrans); |
107 void SetupProxyInformation(RHTTPTransaction aTrans); |
98 TBool CheckPipelineSupport(RHTTPTransaction aTrans); |
108 TBool CheckPipelineSupport(RHTTPTransaction aTrans); |
99 |
109 |
100 void GetCipherSuiteL(RHTTPTransaction aTransaction); |
110 void GetCipherSuiteL(RHTTPTransaction aTransaction); |