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