PlatformStrategiesEfl.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. Copyright (C) 2012 Intel Corporation
  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 PlatformStrategiesEfl_h
  17. #define PlatformStrategiesEfl_h
  18. #include "CookiesStrategy.h"
  19. #include "DatabaseStrategy.h"
  20. #include "LoaderStrategy.h"
  21. #include "PasteboardStrategy.h"
  22. #include "PlatformStrategies.h"
  23. #include "PluginStrategy.h"
  24. #include "SharedWorkerStrategy.h"
  25. #include "StorageStrategy.h"
  26. #include "VisitedLinkStrategy.h"
  27. class PlatformStrategiesEfl : public WebCore::PlatformStrategies, private WebCore::CookiesStrategy, private WebCore::DatabaseStrategy, private WebCore::LoaderStrategy, private WebCore::PluginStrategy, private WebCore::SharedWorkerStrategy, private WebCore::StorageStrategy, private WebCore::VisitedLinkStrategy {
  28. public:
  29. static void initialize();
  30. private:
  31. PlatformStrategiesEfl();
  32. // WebCore::PlatformStrategies
  33. virtual WebCore::CookiesStrategy* createCookiesStrategy();
  34. virtual WebCore::DatabaseStrategy* createDatabaseStrategy();
  35. virtual WebCore::LoaderStrategy* createLoaderStrategy();
  36. virtual WebCore::PasteboardStrategy* createPasteboardStrategy();
  37. virtual WebCore::PluginStrategy* createPluginStrategy();
  38. virtual WebCore::SharedWorkerStrategy* createSharedWorkerStrategy();
  39. virtual WebCore::StorageStrategy* createStorageStrategy();
  40. virtual WebCore::VisitedLinkStrategy* createVisitedLinkStrategy();
  41. // WebCore::CookiesStrategy
  42. virtual String cookiesForDOM(const WebCore::NetworkStorageSession&, const WebCore::KURL& firstParty, const WebCore::KURL&);
  43. virtual void setCookiesFromDOM(const WebCore::NetworkStorageSession&, const WebCore::KURL& firstParty, const WebCore::KURL&, const String&);
  44. virtual bool cookiesEnabled(const WebCore::NetworkStorageSession&, const WebCore::KURL& firstParty, const WebCore::KURL&);
  45. virtual String cookieRequestHeaderFieldValue(const WebCore::NetworkStorageSession&, const WebCore::KURL& firstParty, const WebCore::KURL&);
  46. virtual bool getRawCookies(const WebCore::NetworkStorageSession&, const WebCore::KURL& firstParty, const WebCore::KURL&, Vector<WebCore::Cookie>&);
  47. virtual void deleteCookie(const WebCore::NetworkStorageSession&, const WebCore::KURL&, const String&);
  48. // WebCore::DatabaseStrategy
  49. // - Using default implementation.
  50. // WebCore::PluginStrategy
  51. virtual void refreshPlugins();
  52. virtual void getPluginInfo(const WebCore::Page*, Vector<WebCore::PluginInfo>&);
  53. // WebCore::VisitedLinkStrategy
  54. virtual bool isLinkVisited(WebCore::Page*, WebCore::LinkHash, const WebCore::KURL& baseURL, const WTF::AtomicString& attributeURL);
  55. virtual void addVisitedLink(WebCore::Page*, WebCore::LinkHash);
  56. };
  57. #endif // PlatformStrategiesEfl_h