Home | History | Annotate | Download | only in wince
      1 /*
      2  *  Copyright (C) 2007-2009 Torch Mobile Inc.
      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 
     21 #include "config.h"
     22 #include "IconDatabase.h"
     23 
     24 #include "AutodrainedPool.h"
     25 #include "CString.h"
     26 #include "DocumentLoader.h"
     27 #include "FileSystem.h"
     28 #include "IconDatabaseClient.h"
     29 #include "IconRecord.h"
     30 #include "Image.h"
     31 
     32 namespace WebCore {
     33 
     34 // Function to obtain the global icon database.
     35 IconDatabase* iconDatabase() { return 0; }
     36 
     37 IconDatabase::IconDatabase() {}
     38 IconDatabase::~IconDatabase() {}
     39 
     40 void IconDatabase::setClient(IconDatabaseClient*) {}
     41 
     42 bool IconDatabase::open(const String& path) { return false; }
     43 void IconDatabase::close() {}
     44 
     45 void IconDatabase::removeAllIcons() {}
     46 
     47 Image* IconDatabase::iconForPageURL(const String&, const IntSize&) { return 0; }
     48 void IconDatabase::readIconForPageURLFromDisk(const String&) {}
     49 String IconDatabase::iconURLForPageURL(const String&) { return String(); }
     50 Image* IconDatabase::defaultIcon(const IntSize&) { return 0;}
     51 
     52 void IconDatabase::retainIconForPageURL(const String&) {}
     53 void IconDatabase::releaseIconForPageURL(const String&) {}
     54 
     55 void IconDatabase::setIconDataForIconURL(PassRefPtr<SharedBuffer> data, const String&) {}
     56 void IconDatabase::setIconURLForPageURL(const String& iconURL, const String& pageURL) {}
     57 
     58 IconLoadDecision IconDatabase::loadDecisionForIconURL(const String&, DocumentLoader*) { return IconLoadNo; }
     59 bool IconDatabase::iconDataKnownForIconURL(const String&) { return false; }
     60 
     61 void IconDatabase::setEnabled(bool enabled) {}
     62 bool IconDatabase::isEnabled() const { return false; }
     63 
     64 void IconDatabase::setPrivateBrowsingEnabled(bool flag) {}
     65 bool IconDatabase::isPrivateBrowsingEnabled() const { return false; }
     66 
     67 void IconDatabase::delayDatabaseCleanup() {}
     68 void IconDatabase::allowDatabaseCleanup() {}
     69 void IconDatabase::checkIntegrityBeforeOpening() {}
     70 
     71 // Support for WebCoreStatistics in WebKit
     72 size_t IconDatabase::pageURLMappingCount() { return 0; }
     73 size_t IconDatabase::retainedPageURLCount() {return 0; }
     74 size_t IconDatabase::iconRecordCount() { return 0; }
     75 size_t IconDatabase::iconRecordCountWithData() { return 0; }
     76 
     77 bool IconDatabase::isOpen() const { return false; }
     78 String IconDatabase::databasePath() const { return String(); }
     79 String IconDatabase::defaultDatabaseFilename() { return String(); }
     80 
     81 } // namespace WebCore
     82