FrameNetworkingContextQt.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
  3. This library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Library General Public
  5. License as published by the Free Software Foundation; either
  6. version 2 of the License, or (at your option) any later version.
  7. This library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Library General Public License for more details.
  11. You should have received a copy of the GNU Library General Public License
  12. along with this library; see the file COPYING.LIB. If not, write to
  13. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  14. Boston, MA 02110-1301, USA.
  15. */
  16. #ifndef FrameNetworkingContextQt_h
  17. #define FrameNetworkingContextQt_h
  18. #include "FrameNetworkingContext.h"
  19. namespace WebCore {
  20. class FrameNetworkingContextQt : public FrameNetworkingContext {
  21. public:
  22. static PassRefPtr<FrameNetworkingContextQt> create(Frame*, QObject* originatingObject, bool mimeSniffingEnabled);
  23. private:
  24. FrameNetworkingContextQt(Frame*, QObject* originatingObject, bool mimeSniffingEnabled);
  25. virtual QObject* originatingObject() const;
  26. virtual QNetworkAccessManager* networkAccessManager() const;
  27. virtual bool mimeSniffingEnabled() const;
  28. virtual bool thirdPartyCookiePolicyPermission(const QUrl&) const;
  29. QObject* m_originatingObject;
  30. bool m_mimeSniffingEnabled;
  31. };
  32. }
  33. #endif // FrameNetworkingContextQt_h