WebFrameNetworkingContext.h [plain text]
#ifndef WebFrameNetworkingContext_h
#define WebFrameNetworkingContext_h
#include "WebProcess.h"
#include <WebCore/FrameNetworkingContext.h>
#include <wtf/OwnPtr.h>
namespace WebKit {
class WebFrame;
class WebFrameNetworkingContext : public WebCore::FrameNetworkingContext {
public:
static PassRefPtr<WebFrameNetworkingContext> create(WebFrame*);
QObject* originatingObject() const { return m_originatingObject.get(); }
private:
WebFrameNetworkingContext(WebFrame*);
~WebFrameNetworkingContext() { }
QNetworkAccessManager* networkAccessManager() const { return WebProcess::shared().networkAccessManager(); }
bool mimeSniffingEnabled() const { return m_mimeSniffingEnabled; }
bool thirdPartyCookiePolicyPermission(const QUrl&) const { return true; }
OwnPtr<QObject> m_originatingObject;
bool m_mimeSniffingEnabled;
};
}
#endif // WebFrameNetworkingContext_h