summaryrefslogtreecommitdiffstats
path: root/WebCore/loader/PolicyCallback.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/loader/PolicyCallback.h')
-rw-r--r--WebCore/loader/PolicyCallback.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/WebCore/loader/PolicyCallback.h b/WebCore/loader/PolicyCallback.h
index 2aa7c7c..757fff8 100644
--- a/WebCore/loader/PolicyCallback.h
+++ b/WebCore/loader/PolicyCallback.h
@@ -37,43 +37,43 @@
namespace WebCore {
- class FormState;
+class FormState;
- typedef void (*NavigationPolicyDecisionFunction)(void* argument,
- const ResourceRequest&, PassRefPtr<FormState>, bool shouldContinue);
- typedef void (*NewWindowPolicyDecisionFunction)(void* argument,
- const ResourceRequest&, PassRefPtr<FormState>, const String& frameName, bool shouldContinue);
- typedef void (*ContentPolicyDecisionFunction)(void* argument, PolicyAction);
+typedef void (*NavigationPolicyDecisionFunction)(void* argument,
+ const ResourceRequest&, PassRefPtr<FormState>, bool shouldContinue);
+typedef void (*NewWindowPolicyDecisionFunction)(void* argument,
+ const ResourceRequest&, PassRefPtr<FormState>, const String& frameName, bool shouldContinue);
+typedef void (*ContentPolicyDecisionFunction)(void* argument, PolicyAction);
- class PolicyCallback {
- public:
- PolicyCallback();
- ~PolicyCallback();
+class PolicyCallback {
+public:
+ PolicyCallback();
+ ~PolicyCallback();
- void clear();
- void set(const ResourceRequest&, PassRefPtr<FormState>,
- NavigationPolicyDecisionFunction, void* argument);
- void set(const ResourceRequest&, PassRefPtr<FormState>, const String& frameName,
- NewWindowPolicyDecisionFunction, void* argument);
- void set(ContentPolicyDecisionFunction, void* argument);
+ void clear();
+ void set(const ResourceRequest&, PassRefPtr<FormState>,
+ NavigationPolicyDecisionFunction, void* argument);
+ void set(const ResourceRequest&, PassRefPtr<FormState>, const String& frameName,
+ NewWindowPolicyDecisionFunction, void* argument);
+ void set(ContentPolicyDecisionFunction, void* argument);
- const ResourceRequest& request() const { return m_request; }
- void clearRequest();
+ const ResourceRequest& request() const { return m_request; }
+ void clearRequest();
- void call(bool shouldContinue);
- void call(PolicyAction);
- void cancel();
+ void call(bool shouldContinue);
+ void call(PolicyAction);
+ void cancel();
- private:
- ResourceRequest m_request;
- RefPtr<FormState> m_formState;
- String m_frameName;
+private:
+ ResourceRequest m_request;
+ RefPtr<FormState> m_formState;
+ String m_frameName;
- NavigationPolicyDecisionFunction m_navigationFunction;
- NewWindowPolicyDecisionFunction m_newWindowFunction;
- ContentPolicyDecisionFunction m_contentFunction;
- void* m_argument;
- };
+ NavigationPolicyDecisionFunction m_navigationFunction;
+ NewWindowPolicyDecisionFunction m_newWindowFunction;
+ ContentPolicyDecisionFunction m_contentFunction;
+ void* m_argument;
+};
} // namespace WebCore