Title: [117254] trunk/Source/WebKit2
Revision
117254
Author
[email protected]
Date
2012-05-16 03:43:17 -0700 (Wed, 16 May 2012)

Log Message

[Qt][WK2] Move WebFrameNetworkingContext to WebKit namespace.
https://bugs.webkit.org/show_bug.cgi?id=86590

Patch by Zalan Bujtas <[email protected]> on 2012-05-16
Reviewed by Simon Hausmann.

* WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.cpp:
(WebKit::WebFrameNetworkingContext::WebFrameNetworkingContext):
(WebKit::WebFrameNetworkingContext::create):
* WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.h:
(WebKit):
(WebFrameNetworkingContext):
(WebKit::WebFrameNetworkingContext::originatingObject):
(WebKit::WebFrameNetworkingContext::~WebFrameNetworkingContext):
(WebKit::WebFrameNetworkingContext::networkAccessManager):
(WebKit::WebFrameNetworkingContext::mimeSniffingEnabled):
(WebKit::WebFrameNetworkingContext::thirdPartyCookiePolicyPermission):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (117253 => 117254)


--- trunk/Source/WebKit2/ChangeLog	2012-05-16 10:34:01 UTC (rev 117253)
+++ trunk/Source/WebKit2/ChangeLog	2012-05-16 10:43:17 UTC (rev 117254)
@@ -1,3 +1,22 @@
+2012-05-16  Zalan Bujtas  <[email protected]>
+
+        [Qt][WK2] Move WebFrameNetworkingContext to WebKit namespace.
+        https://bugs.webkit.org/show_bug.cgi?id=86590
+
+        Reviewed by Simon Hausmann.
+
+        * WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.cpp:
+        (WebKit::WebFrameNetworkingContext::WebFrameNetworkingContext):
+        (WebKit::WebFrameNetworkingContext::create):
+        * WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.h:
+        (WebKit):
+        (WebFrameNetworkingContext):
+        (WebKit::WebFrameNetworkingContext::originatingObject):
+        (WebKit::WebFrameNetworkingContext::~WebFrameNetworkingContext):
+        (WebKit::WebFrameNetworkingContext::networkAccessManager):
+        (WebKit::WebFrameNetworkingContext::mimeSniffingEnabled):
+        (WebKit::WebFrameNetworkingContext::thirdPartyCookiePolicyPermission):
+
 2012-05-16  Andras Becsi  <[email protected]>
 
         [WTR] Visited link tracking is not disabled properly

Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.cpp (117253 => 117254)


--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.cpp	2012-05-16 10:34:01 UTC (rev 117253)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.cpp	2012-05-16 10:43:17 UTC (rev 117254)
@@ -22,14 +22,12 @@
 
 #include "WebFrame.h"
 #include "WebPage.h"
-#include "WebProcess.h"
-#include <QNetworkAccessManager>
 #include <QObject>
 #include <QVariant>
 
-namespace WebCore {
+namespace WebKit {
 
-WebFrameNetworkingContext::WebFrameNetworkingContext(WebKit::WebFrame* frame)
+WebFrameNetworkingContext::WebFrameNetworkingContext(WebFrame* frame)
     : FrameNetworkingContext(frame->coreFrame())
     , m_mimeSniffingEnabled(true)
 {
@@ -40,34 +38,9 @@
     }
 }
 
-WebFrameNetworkingContext::~WebFrameNetworkingContext()
+PassRefPtr<WebFrameNetworkingContext> WebFrameNetworkingContext::create(WebFrame* frame)
 {
-}
-
-PassRefPtr<WebFrameNetworkingContext> WebFrameNetworkingContext::create(WebKit::WebFrame* frame)
-{
     return adoptRef(new WebFrameNetworkingContext(frame));
 }
 
-QObject* WebFrameNetworkingContext::originatingObject() const
-{
-    return m_originatingObject.get();
 }
-
-QNetworkAccessManager* WebFrameNetworkingContext::networkAccessManager() const
-{
-    return WebKit::WebProcess::shared().networkAccessManager();
-}
-
-bool WebFrameNetworkingContext::mimeSniffingEnabled() const
-{
-    return m_mimeSniffingEnabled;
-}
-
-bool WebFrameNetworkingContext::thirdPartyCookiePolicyPermission(const QUrl &) const
-{
-    // ### TODO. Used QWebSettings in WK1.
-    return true;
-}
-
-}

Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.h (117253 => 117254)


--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.h	2012-05-16 10:34:01 UTC (rev 117253)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.h	2012-05-16 10:43:17 UTC (rev 117254)
@@ -20,28 +20,26 @@
 #ifndef WebFrameNetworkingContext_h
 #define WebFrameNetworkingContext_h
 
+#include "WebProcess.h"
 #include <WebCore/FrameNetworkingContext.h>
-
 #include <wtf/OwnPtr.h>
 
 namespace WebKit {
+
 class WebFrame;
-}
 
-namespace WebCore {
-
-class WebFrameNetworkingContext : public FrameNetworkingContext {
+class WebFrameNetworkingContext : public WebCore::FrameNetworkingContext {
 public:
-    static PassRefPtr<WebFrameNetworkingContext> create(WebKit::WebFrame*);
-    virtual QObject* originatingObject() const;
+    static PassRefPtr<WebFrameNetworkingContext> create(WebFrame*);
+    QObject* originatingObject() const { return m_originatingObject.get(); }
 
 private:
-    WebFrameNetworkingContext(WebKit::WebFrame*);
-    virtual ~WebFrameNetworkingContext();
+    WebFrameNetworkingContext(WebFrame*);
+    ~WebFrameNetworkingContext() { }
 
-    virtual QNetworkAccessManager* networkAccessManager() const;
-    virtual bool mimeSniffingEnabled() const;
-    virtual bool thirdPartyCookiePolicyPermission(const QUrl&) const;
+    QNetworkAccessManager* networkAccessManager() const { return WebProcess::shared().networkAccessManager(); }
+    bool mimeSniffingEnabled() const { return m_mimeSniffingEnabled; }
+    bool thirdPartyCookiePolicyPermission(const QUrl&) const { /*TODO. Used QWebSettings in WK1.*/ return true; }
 
     OwnPtr<QObject> m_originatingObject;
     bool m_mimeSniffingEnabled;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to