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