Commit 00a4f524 authored by weinig@apple.com's avatar weinig@apple.com

2011-05-02 Sam Weinig <sam@webkit.org>

        Reviewed by Adam Barth.

        Prune some #includes from DOMWindow.h
        https://bugs.webkit.org/show_bug.cgi?id=59907

        * Plugins/WebBaseNetscapePluginView.mm:
        * WebView/WebFrame.mm:
        Add now missing SecurityOrigin.h #includes.
2011-05-02  Sam Weinig  <sam@webkit.org>

        Reviewed by Adam Barth.

        Prune some #includes from DOMWindow.h
        https://bugs.webkit.org/show_bug.cgi?id=59907

        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::setSecurityOrigin):
        * page/DOMWindow.h:
        Remove #includes of SecurityOrigin and MessagePort by forward declaring
        and moving the SecurityOrigin setter to the .cpp file. Also adds EventTarget
        #include that was getting added by MessagePort.h.

        * bindings/js/JSCustomVoidCallback.cpp:
        * bindings/js/JSCustomXPathNSResolver.cpp:
        * bindings/js/JSDOMWindowCustom.h:
        * bindings/js/JSHistoryCustom.cpp:
        * bindings/js/ScriptController.h:
        * html/HTMLAnchorElement.cpp:
        * html/HTMLMediaElement.cpp:
        * html/parser/XSSFilter.cpp:
        * inspector/InspectorDOMStorageResource.cpp:
        * loader/MainResourceLoader.cpp:
        * page/DragController.cpp:
        * page/EventSource.cpp:
        * page/Location.cpp:
        * websockets/WebSocket.cpp:
        * xml/XSLTProcessorLibxslt.cpp:
        Add now missing SecurityOrigin.h #includes.
2011-05-02  Sam Weinig  <sam@webkit.org>

        Reviewed by Adam Barth.

        Prune some #includes from DOMWindow.h
        https://bugs.webkit.org/show_bug.cgi?id=59907

        * WebProcess/WebPage/WebFrame.cpp:
        Add now missing SecurityOrigin.h #include.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 3b289ccf
2011-05-02 Sam Weinig <sam@webkit.org>
Reviewed by Adam Barth.
Prune some #includes from DOMWindow.h
https://bugs.webkit.org/show_bug.cgi?id=59907
* page/DOMWindow.cpp:
(WebCore::DOMWindow::setSecurityOrigin):
* page/DOMWindow.h:
Remove #includes of SecurityOrigin and MessagePort by forward declaring
and moving the SecurityOrigin setter to the .cpp file. Also adds EventTarget
#include that was getting added by MessagePort.h.
* bindings/js/JSCustomVoidCallback.cpp:
* bindings/js/JSCustomXPathNSResolver.cpp:
* bindings/js/JSDOMWindowCustom.h:
* bindings/js/JSHistoryCustom.cpp:
* bindings/js/ScriptController.h:
* html/HTMLAnchorElement.cpp:
* html/HTMLMediaElement.cpp:
* html/parser/XSSFilter.cpp:
* inspector/InspectorDOMStorageResource.cpp:
* loader/MainResourceLoader.cpp:
* page/DragController.cpp:
* page/EventSource.cpp:
* page/Location.cpp:
* websockets/WebSocket.cpp:
* xml/XSLTProcessorLibxslt.cpp:
Add now missing SecurityOrigin.h #includes.
2011-05-02 Eric Carlson <eric.carlson@apple.com>
Reviewed by Brady Eidson.
......@@ -32,6 +32,7 @@
#include "Frame.h"
#include "JSCallbackData.h"
#include "JSDOMWindowCustom.h"
#include "SecurityOrigin.h"
#include <runtime/JSLock.h>
#include <wtf/MainThread.h>
......
......@@ -32,6 +32,7 @@
#include "ExceptionCode.h"
#include "Frame.h"
#include "JSDOMWindowCustom.h"
#include "SecurityOrigin.h"
#include <runtime/JSLock.h>
namespace WebCore {
......
......@@ -21,6 +21,7 @@
#include "JSDOMWindow.h"
#include "JSDOMWindowShell.h"
#include "SecurityOrigin.h"
#include <wtf/AlwaysInline.h>
namespace WebCore {
......
......@@ -31,6 +31,7 @@
#include "Frame.h"
#include "History.h"
#include "SerializedScriptValue.h"
#include <runtime/JSFunction.h>
using namespace JSC;
......
......@@ -22,6 +22,7 @@
#ifndef ScriptController_h
#define ScriptController_h
#include "FrameLoaderTypes.h"
#include "JSDOMWindowShell.h"
#include "ScriptControllerBase.h"
#include "ScriptInstance.h"
......
......@@ -43,6 +43,7 @@
#include "ScriptCallStack.h"
#include "ScriptCallStackFactory.h"
#include "ScriptProfiler.h"
#include "SecurityOrigin.h"
#include "StorageNamespace.h"
#include "V8Binding.h"
#include "V8BindingState.h"
......
......@@ -37,6 +37,7 @@
#include "PingLoader.h"
#include "RenderImage.h"
#include "ResourceHandle.h"
#include "SecurityOrigin.h"
#include "Settings.h"
#include "UserGestureIndicator.h"
......
......@@ -61,6 +61,7 @@
#include "RenderVideo.h"
#include "RenderView.h"
#include "ScriptEventListener.h"
#include "SecurityOrigin.h"
#include "Settings.h"
#include "ShadowRoot.h"
#include "TimeRanges.h"
......
......@@ -34,6 +34,7 @@
#include "HTMLNames.h"
#include "HTMLParamElement.h"
#include "HTMLParserIdioms.h"
#include "SecurityOrigin.h"
#include "Settings.h"
#include "TextEncoding.h"
#include "TextResourceDecoder.h"
......
......@@ -40,6 +40,7 @@
#include "Frame.h"
#include "InspectorFrontend.h"
#include "InspectorValues.h"
#include "SecurityOrigin.h"
#include "Storage.h"
#include "StorageEvent.h"
......
......@@ -46,6 +46,7 @@
#include "ResourceHandle.h"
#include "ResourceLoadScheduler.h"
#include "SchemeRegistry.h"
#include "SecurityOrigin.h"
#include "Settings.h"
#include <wtf/CurrentTime.h>
......
......@@ -418,6 +418,11 @@ PassRefPtr<MediaQueryList> DOMWindow::matchMedia(const String& media)
return document() ? document()->mediaQueryMatcher()->matchMedia(media) : 0;
}
void DOMWindow::setSecurityOrigin(SecurityOrigin* securityOrigin)
{
m_securityOrigin = securityOrigin;
}
void DOMWindow::disconnectFrame()
{
m_frame = 0;
......
......@@ -27,9 +27,8 @@
#ifndef DOMWindow_h
#define DOMWindow_h
#include "EventTarget.h"
#include "KURL.h"
#include "MessagePort.h"
#include "SecurityOrigin.h"
namespace WebCore {
......@@ -50,6 +49,7 @@ namespace WebCore {
class EventListener;
class FileSystemCallback;
class FloatRect;
class Frame;
class History;
class IDBFactory;
class Location;
......@@ -61,6 +61,7 @@ namespace WebCore {
class PostMessageTimer;
class ScheduledAction;
class Screen;
class SecurityOrigin;
class SerializedScriptValue;
class Storage;
class StorageInfo;
......@@ -73,6 +74,8 @@ namespace WebCore {
struct WindowFeatures;
typedef Vector<RefPtr<MessagePort>, 1> MessagePortArray;
typedef int ExceptionCode;
enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBackForwardList };
......@@ -92,7 +95,7 @@ namespace WebCore {
PassRefPtr<MediaQueryList> matchMedia(const String&);
void setSecurityOrigin(SecurityOrigin* securityOrigin) { m_securityOrigin = securityOrigin; }
void setSecurityOrigin(SecurityOrigin*);
SecurityOrigin* securityOrigin() const { return m_securityOrigin.get(); }
void setURL(const KURL& url) { m_url = url; }
......
......@@ -60,6 +60,7 @@
#include "RenderView.h"
#include "ReplaceSelectionCommand.h"
#include "ResourceRequest.h"
#include "SecurityOrigin.h"
#include "SelectionController.h"
#include "Settings.h"
#include "Text.h"
......
......@@ -48,6 +48,7 @@
#include "ResourceResponse.h"
#include "ScriptCallStack.h"
#include "ScriptExecutionContext.h"
#include "SecurityOrigin.h"
#include "SerializedScriptValue.h"
#include "TextResourceDecoder.h"
#include "ThreadableLoader.h"
......
......@@ -35,6 +35,7 @@
#include "Frame.h"
#include "FrameLoader.h"
#include "KURL.h"
#include "SecurityOrigin.h"
namespace WebCore {
......
......@@ -43,6 +43,7 @@
#include "MessageEvent.h"
#include "ScriptCallStack.h"
#include "ScriptExecutionContext.h"
#include "SecurityOrigin.h"
#include "ThreadableWebSocketChannel.h"
#include "WebSocketChannel.h"
#include <wtf/StdLibExtras.h>
......
......@@ -35,6 +35,7 @@
#include "ResourceHandle.h"
#include "ResourceRequest.h"
#include "ResourceResponse.h"
#include "SecurityOrigin.h"
#include "TransformSource.h"
#include "XMLDocumentParser.h"
#include "XSLStyleSheet.h"
......
......@@ -28,6 +28,7 @@
#include "Console.h"
#include "DOMWindow.h"
#include "Frame.h"
#include "SecurityOrigin.h"
#include "TransformSource.h"
#include "markup.h"
#include <wtf/Assertions.h>
......
2011-05-02 Sam Weinig <sam@webkit.org>
Reviewed by Adam Barth.
Prune some #includes from DOMWindow.h
https://bugs.webkit.org/show_bug.cgi?id=59907
* Plugins/WebBaseNetscapePluginView.mm:
* WebView/WebFrame.mm:
Add now missing SecurityOrigin.h #includes.
2011-05-01 Ryosuke Niwa <rniwa@webkit.org>
Reviewed by Eric Seidel.
......
......@@ -55,6 +55,7 @@
#import <WebCore/ProtectionSpace.h>
#import <WebCore/RenderView.h>
#import <WebCore/RenderWidget.h>
#import <WebCore/SecurityOrigin.h>
#import <WebCore/WebCoreObjCExtras.h>
#import <WebKit/DOMPrivate.h>
#import <runtime/InitializeThreading.h>
......
......@@ -83,6 +83,7 @@
#import <WebCore/ReplaceSelectionCommand.h>
#import <WebCore/RuntimeApplicationChecks.h>
#import <WebCore/ScriptValue.h>
#import <WebCore/SecurityOrigin.h>
#import <WebCore/SmartReplace.h>
#import <WebCore/SVGDocumentExtensions.h>
#import <WebCore/SVGSMILElement.h>
......
2011-05-02 Sam Weinig <sam@webkit.org>
Reviewed by Adam Barth.
Prune some #includes from DOMWindow.h
https://bugs.webkit.org/show_bug.cgi?id=59907
* WebProcess/WebPage/WebFrame.cpp:
Add now missing SecurityOrigin.h #include.
2011-04-29 Brian Weinstein <bweinstein@apple.com>
Reviewed by Dan Bernstein.
......
......@@ -51,6 +51,7 @@
#include <WebCore/JSRange.h>
#include <WebCore/Page.h>
#include <WebCore/RenderTreeAsText.h>
#include <WebCore/SecurityOrigin.h>
#include <WebCore/TextIterator.h>
#include <WebCore/TextResourceDecoder.h>
#include <wtf/text/StringBuilder.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment