2009-10-16 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Fix header indent style for FrameLoader and friends
https://bugs.webkit.org/show_bug.cgi?id=30430
* loader/FrameLoader.h:
(WebCore::FrameLoader::frame):
(WebCore::FrameLoader::policyChecker):
(WebCore::FrameLoader::history):
(WebCore::FrameLoader::notifier):
(WebCore::FrameLoader::isLoadingMainResource):
(WebCore::FrameLoader::documentLoader):
(WebCore::FrameLoader::policyDocumentLoader):
(WebCore::FrameLoader::provisionalDocumentLoader):
(WebCore::FrameLoader::state):
(WebCore::FrameLoader::client):
(WebCore::FrameLoader::url):
(WebCore::FrameLoader::isLoadingFromCachedPage):
(WebCore::FrameLoader::committingFirstRealLoad):
(WebCore::FrameLoader::committedFirstRealDocumentLoad):
(WebCore::FrameLoader::creatingInitialEmptyDocument):
* loader/HistoryController.h:
(WebCore::HistoryController::currentItem):
(WebCore::HistoryController::provisionalItem):
* loader/PolicyCallback.h:
(WebCore::PolicyCallback::request):
* loader/PolicyChecker.h:
(WebCore::PolicyChecker::loadType):
(WebCore::PolicyChecker::setLoadType):
(WebCore::PolicyChecker::delegateIsDecidingNavigationPolicy):
(WebCore::PolicyChecker::delegateIsHandlingUnimplementablePolicy):
* loader/RedirectScheduler.h:
* loader/ResourceLoadNotifier.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49706 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/loader/PolicyChecker.h b/WebCore/loader/PolicyChecker.h
index c667f5b..541729c 100644
--- a/WebCore/loader/PolicyChecker.h
+++ b/WebCore/loader/PolicyChecker.h
@@ -38,59 +38,59 @@
namespace WebCore {
- class DocumentLoader;
- class FormState;
- class Frame;
- class NavigationAction;
- class ResourceError;
- class ResourceResponse;
+class DocumentLoader;
+class FormState;
+class Frame;
+class NavigationAction;
+class ResourceError;
+class ResourceResponse;
- class PolicyChecker : public Noncopyable {
- public:
- PolicyChecker(Frame*);
+class PolicyChecker : public Noncopyable {
+public:
+ PolicyChecker(Frame*);
- void checkNavigationPolicy(const ResourceRequest&, DocumentLoader*, PassRefPtr<FormState>, NavigationPolicyDecisionFunction, void* argument);
- void checkNavigationPolicy(const ResourceRequest&, NavigationPolicyDecisionFunction, void* argument);
- void checkNewWindowPolicy(const NavigationAction&, NewWindowPolicyDecisionFunction, const ResourceRequest&, PassRefPtr<FormState>, const String& frameName, void* argument);
- void checkContentPolicy(const String& MIMEType, ContentPolicyDecisionFunction, void* argument);
+ void checkNavigationPolicy(const ResourceRequest&, DocumentLoader*, PassRefPtr<FormState>, NavigationPolicyDecisionFunction, void* argument);
+ void checkNavigationPolicy(const ResourceRequest&, NavigationPolicyDecisionFunction, void* argument);
+ void checkNewWindowPolicy(const NavigationAction&, NewWindowPolicyDecisionFunction, const ResourceRequest&, PassRefPtr<FormState>, const String& frameName, void* argument);
+ void checkContentPolicy(const String& MIMEType, ContentPolicyDecisionFunction, void* argument);
- // FIXME: These are different. They could use better names.
- void cancelCheck();
- void stopCheck();
+ // FIXME: These are different. They could use better names.
+ void cancelCheck();
+ void stopCheck();
- void cannotShowMIMEType(const ResourceResponse&);
+ void cannotShowMIMEType(const ResourceResponse&);
- FrameLoadType loadType() const { return m_loadType; }
- void setLoadType(FrameLoadType loadType) { m_loadType = loadType; }
+ FrameLoadType loadType() const { return m_loadType; }
+ void setLoadType(FrameLoadType loadType) { m_loadType = loadType; }
- bool delegateIsDecidingNavigationPolicy() const { return m_delegateIsDecidingNavigationPolicy; }
- bool delegateIsHandlingUnimplementablePolicy() const { return m_delegateIsHandlingUnimplementablePolicy; }
+ bool delegateIsDecidingNavigationPolicy() const { return m_delegateIsDecidingNavigationPolicy; }
+ bool delegateIsHandlingUnimplementablePolicy() const { return m_delegateIsHandlingUnimplementablePolicy; }
- // FIXME: This function is a cheat. Basically, this is just an asynchronouc callback
- // from the FrameLoaderClient, but this callback uses the policy types and so has to
- // live on this object. In the long term, we should create a type for non-policy
- // callbacks from the FrameLoaderClient and remove this vestige. I just don't have
- // the heart to hack on all the platforms to make that happen right now.
- void continueLoadAfterWillSubmitForm(PolicyAction);
+ // FIXME: This function is a cheat. Basically, this is just an asynchronouc callback
+ // from the FrameLoaderClient, but this callback uses the policy types and so has to
+ // live on this object. In the long term, we should create a type for non-policy
+ // callbacks from the FrameLoaderClient and remove this vestige. I just don't have
+ // the heart to hack on all the platforms to make that happen right now.
+ void continueLoadAfterWillSubmitForm(PolicyAction);
- private:
- void continueAfterNavigationPolicy(PolicyAction);
- void continueAfterNewWindowPolicy(PolicyAction);
- void continueAfterContentPolicy(PolicyAction);
+private:
+ void continueAfterNavigationPolicy(PolicyAction);
+ void continueAfterNewWindowPolicy(PolicyAction);
+ void continueAfterContentPolicy(PolicyAction);
- void handleUnimplementablePolicy(const ResourceError&);
+ void handleUnimplementablePolicy(const ResourceError&);
- Frame* m_frame;
+ Frame* m_frame;
- bool m_delegateIsDecidingNavigationPolicy;
- bool m_delegateIsHandlingUnimplementablePolicy;
+ bool m_delegateIsDecidingNavigationPolicy;
+ bool m_delegateIsHandlingUnimplementablePolicy;
- // This identifies the type of navigation action which prompted this load. Note
- // that WebKit conveys this value as the WebActionNavigationTypeKey value
- // on navigation action delegate callbacks.
- FrameLoadType m_loadType;
- PolicyCallback m_callback;
- };
+ // This identifies the type of navigation action which prompted this load. Note
+ // that WebKit conveys this value as the WebActionNavigationTypeKey value
+ // on navigation action delegate callbacks.
+ FrameLoadType m_loadType;
+ PolicyCallback m_callback;
+};
} // namespace WebCore