| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com) | 3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 virtual Image* synchronousIconForPageURL(const String&, const IntSize&); | 99 virtual Image* synchronousIconForPageURL(const String&, const IntSize&); |
| 100 virtual PassNativeImagePtr synchronousNativeIconForPageURL(const String& pag
eURLOriginal, const IntSize&); | 100 virtual PassNativeImagePtr synchronousNativeIconForPageURL(const String& pag
eURLOriginal, const IntSize&); |
| 101 virtual String synchronousIconURLForPageURL(const String&); | 101 virtual String synchronousIconURLForPageURL(const String&); |
| 102 virtual bool synchronousIconDataKnownForIconURL(const String&); | 102 virtual bool synchronousIconDataKnownForIconURL(const String&); |
| 103 virtual IconLoadDecision synchronousLoadDecisionForIconURL(const String&, Do
cumentLoader*); | 103 virtual IconLoadDecision synchronousLoadDecisionForIconURL(const String&, Do
cumentLoader*); |
| 104 | 104 |
| 105 virtual void setEnabled(bool); | 105 virtual void setEnabled(bool); |
| 106 virtual bool isEnabled() const; | 106 virtual bool isEnabled() const; |
| 107 | 107 |
| 108 virtual void setPrivateBrowsingEnabled(bool flag); | |
| 109 bool isPrivateBrowsingEnabled() const; | |
| 110 | |
| 111 static void delayDatabaseCleanup(); | 108 static void delayDatabaseCleanup(); |
| 112 static void allowDatabaseCleanup(); | 109 static void allowDatabaseCleanup(); |
| 113 static void checkIntegrityBeforeOpening(); | 110 static void checkIntegrityBeforeOpening(); |
| 114 | 111 |
| 115 // Support for WebCoreStatistics in WebKit | 112 // Support for WebCoreStatistics in WebKit |
| 116 virtual size_t pageURLMappingCount(); | 113 virtual size_t pageURLMappingCount(); |
| 117 virtual size_t retainedPageURLCount(); | 114 virtual size_t retainedPageURLCount(); |
| 118 virtual size_t iconRecordCount(); | 115 virtual size_t iconRecordCount(); |
| 119 virtual size_t iconRecordCountWithData(); | 116 virtual size_t iconRecordCountWithData(); |
| 120 | 117 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 146 public: | 143 public: |
| 147 virtual bool isOpen() const; | 144 virtual bool isOpen() const; |
| 148 virtual String databasePath() const; | 145 virtual String databasePath() const; |
| 149 static String defaultDatabaseFilename(); | 146 static String defaultDatabaseFilename(); |
| 150 | 147 |
| 151 private: | 148 private: |
| 152 PassRefPtr<IconRecord> getOrCreateIconRecord(const String& iconURL); | 149 PassRefPtr<IconRecord> getOrCreateIconRecord(const String& iconURL); |
| 153 PageURLRecord* getOrCreatePageURLRecord(const String& pageURL); | 150 PageURLRecord* getOrCreatePageURLRecord(const String& pageURL); |
| 154 | 151 |
| 155 bool m_isEnabled; | 152 bool m_isEnabled; |
| 156 bool m_privateBrowsingEnabled; | |
| 157 | 153 |
| 158 mutable Mutex m_syncLock; | 154 mutable Mutex m_syncLock; |
| 159 ThreadCondition m_syncCondition; | 155 ThreadCondition m_syncCondition; |
| 160 String m_databaseDirectory; | 156 String m_databaseDirectory; |
| 161 // Holding m_syncLock is required when accessing m_completeDatabasePath | 157 // Holding m_syncLock is required when accessing m_completeDatabasePath |
| 162 String m_completeDatabasePath; | 158 String m_completeDatabasePath; |
| 163 | 159 |
| 164 bool m_threadTerminationRequested; | 160 bool m_threadTerminationRequested; |
| 165 bool m_removeIconsRequested; | 161 bool m_removeIconsRequested; |
| 166 bool m_iconURLImportComplete; | 162 bool m_iconURLImportComplete; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 OwnPtr<SQLiteStatement> m_updateIconDataStatement; | 251 OwnPtr<SQLiteStatement> m_updateIconDataStatement; |
| 256 OwnPtr<SQLiteStatement> m_setIconInfoStatement; | 252 OwnPtr<SQLiteStatement> m_setIconInfoStatement; |
| 257 OwnPtr<SQLiteStatement> m_setIconDataStatement; | 253 OwnPtr<SQLiteStatement> m_setIconDataStatement; |
| 258 }; | 254 }; |
| 259 | 255 |
| 260 #endif // !ENABLE(ICONDATABASE) | 256 #endif // !ENABLE(ICONDATABASE) |
| 261 | 257 |
| 262 } // namespace WebCore | 258 } // namespace WebCore |
| 263 | 259 |
| 264 #endif // IconDatabase_h | 260 #endif // IconDatabase_h |
| OLD | NEW |