PlatformStrategiesManx.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Copyright (C) 2012 Igalia S.L.
  3. * Copyright (C) 2012 Sony Computer Entertainment Inc.
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  18. */
  19. #ifndef PlatformStrategiesManx_h
  20. #define PlatformStrategiesManx_h
  21. #include "CookiesStrategy.h"
  22. #include "DatabaseStrategy.h"
  23. #include "LoaderStrategy.h"
  24. #include "PasteboardStrategy.h"
  25. #include "PlatformStrategies.h"
  26. #include "PluginStrategy.h"
  27. #include "SharedWorkerStrategy.h"
  28. #include "StorageStrategy.h"
  29. #include "VisitedLinkStrategy.h"
  30. class PlatformStrategiesManx : public WebCore::PlatformStrategies, private WebCore::CookiesStrategy, private WebCore::DatabaseStrategy, private WebCore::LoaderStrategy, private WebCore::PluginStrategy, private WebCore::SharedWorkerStrategy, private WebCore::StorageStrategy, private WebCore::VisitedLinkStrategy {
  31. public:
  32. static void initialize();
  33. private:
  34. PlatformStrategiesManx();
  35. // WebCore::PlatformStrategies
  36. virtual WebCore::CookiesStrategy* createCookiesStrategy();
  37. virtual WebCore::DatabaseStrategy* createDatabaseStrategy();
  38. virtual WebCore::LoaderStrategy* createLoaderStrategy();
  39. virtual WebCore::PasteboardStrategy* createPasteboardStrategy();
  40. virtual WebCore::PluginStrategy* createPluginStrategy();
  41. virtual WebCore::SharedWorkerStrategy* createSharedWorkerStrategy();
  42. virtual WebCore::StorageStrategy* createStorageStrategy();
  43. virtual WebCore::VisitedLinkStrategy* createVisitedLinkStrategy();
  44. // WebCore::CookiesStrategy
  45. virtual String cookiesForDOM(const WebCore::NetworkStorageSession&, const WebCore::KURL& firstParty, const WebCore::KURL&);
  46. virtual void setCookiesFromDOM(const WebCore::NetworkStorageSession&, const WebCore::KURL& firstParty, const WebCore::KURL&, const String&);
  47. virtual bool cookiesEnabled(const WebCore::NetworkStorageSession&, const WebCore::KURL& firstParty, const WebCore::KURL&);
  48. virtual String cookieRequestHeaderFieldValue(const WebCore::NetworkStorageSession&, const WebCore::KURL& firstParty, const WebCore::KURL&);
  49. virtual bool getRawCookies(const WebCore::NetworkStorageSession&, const WebCore::KURL& firstParty, const WebCore::KURL&, Vector<WebCore::Cookie>&);
  50. virtual void deleteCookie(const WebCore::NetworkStorageSession&, const WebCore::KURL&, const String&);
  51. // WebCore::PluginStrategy
  52. virtual void refreshPlugins();
  53. virtual void getPluginInfo(const WebCore::Page*, Vector<WebCore::PluginInfo>&);
  54. // WebCore::VisitedLinkStrategy
  55. virtual bool isLinkVisited(WebCore::Page*, WebCore::LinkHash, const WebCore::KURL& baseURL, const WTF::AtomicString& attributeURL);
  56. virtual void addVisitedLink(WebCore::Page*, WebCore::LinkHash);
  57. };
  58. #endif // PlatformStrategiesManx_h