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