|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: declaration of WebPolicyManager |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _WEBPOLICYMANAGER_H |
|
20 #define _WEBPOLICYMANAGER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "Shared.h" |
|
24 #include "FrameLoaderClient.h" |
|
25 |
|
26 class WebFrameLoaderClient; |
|
27 |
|
28 namespace WebCore { |
|
29 }; |
|
30 |
|
31 class WebPolicyManager { |
|
32 public: |
|
33 WebPolicyManager(WebFrameLoaderClient* webFrameLoaderClient); |
|
34 ~WebPolicyManager(); |
|
35 void dispatchDecidePolicyForMIMEType(WebCore::FramePolicyFunction, const WebCore::String& MIMEType, const WebCore::ResourceRequest&); |
|
36 void dispatchDecidePolicyForNewWindowAction(WebCore::FramePolicyFunction, const WebCore::NavigationAction&, const WebCore::ResourceRequest&, const WebCore::String& frameName); |
|
37 void dispatchDecidePolicyForNavigationAction(WebCore::FramePolicyFunction, const WebCore::NavigationAction&, const WebCore::ResourceRequest&); |
|
38 void cancelPolicyCheck(); |
|
39 void dispatchUnableToImplementPolicy(const WebCore::ResourceError&); |
|
40 void dispatchWillSubmitForm(WebCore::FramePolicyFunction, PassRefPtr<WebCore::FormState>); |
|
41 WebCore::ResourceError interruptForPolicyChangeError(const WebCore::ResourceRequest&); |
|
42 bool canShowMIMEType(const WebCore::String& MIMEType) const ; |
|
43 |
|
44 bool newWindowuserGesture() { return m_newWindowUserGesture; } |
|
45 TDesC* newWindowTargetName() { return m_newWindowTargetName; } |
|
46 |
|
47 private: |
|
48 WebFrameLoaderClient* m_webFrameLoaderClient; |
|
49 bool m_newWindowUserGesture; |
|
50 HBufC* m_newWindowTargetName; |
|
51 }; |
|
52 |
|
53 |
|
54 #endif // _WEBPOLICYMANAGER_H |
|
55 |