<?xml version="1.0" encoding="UTF-8"?>
<!--

    BleachBit
    Copyright (C) 2013 Andrew Ziem
    http://bleachbit.sourceforge.net

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

-->
<cleaner id="chromium">
  <label>Chromium</label>
  <description>Web browser</description>
  <running type="exe">chrome.exe</running>
  <!-- Fedora 14 -->
  <running type="exe">chromium-browser</running>
  <option id="cache">
    <label>Cache</label>
    <description>Delete the web cache, which reduces time to display revisited pages</description>
    <action command="delete" search="walk.files" path="$localappdata\Chromium\User Data\Default\Cache\"/>
    <action command="delete" search="walk.files" path="~/.cache/chromium/"/>
    <action command="delete" search="walk.files" path="~/.cxchromium/chromium/drive_c/windows/profiles/crossover/Local Settings/Application Data/Google/Chrome/User Data/Default/Cache"/>
    <action command="json" search="file" path="$localappdata\Chromium\User Data\Default\Preferences" address="dns_prefetching/startup_list"/>
    <action command="json" search="file" path="$localappdata\Chromium\User Data\Default\Preferences" address="dns_prefetching/host_referral_list"/>
    <action command="json" search="file" path="~/.config/chromium/Default/Preferences" address="dns_prefetching/host_referral_list"/>
    <action command="json" search="file" path="~/.config/chromium/Default/Preferences" address="dns_prefetching/startup_list"/>
    <action command="json" search="file" path="~/.config/chromium/Local State" address="HostReferralList"/>
    <action command="json" search="file" path="~/.config/chromium/Local State" address="StartupDNSPrefetchList"/>
  </option>
  <option id="cookies">
    <label>Cookies</label>
    <description>Delete cookies, which contain information such as web site preferences, authentication, and tracking identification</description>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Cookies"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Extension Cookies"/>
    <action command="delete" search="file" path="~/.cxchromium/chromium/drive_c/windows/profiles/crossover/Local Settings/Application Data/Google/Chrome/User Data/Default/Cookies"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Cookies"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Extension Cookies"/>
  </option>
  <option id="dom">
    <label>DOM Storage</label>
    <description>Delete HTML5 cookies</description>
    <!-- do not delete extension preferences ~/.config/chromium/Default/database/chrome-extension* (Fedora 14, Chromium 12) -->
    <action command="chrome.databases_db" search="glob" path="$localappdata\Chromium\User Data\Default\databases\Databases.db"/>
    <action command="chrome.databases_db" search="glob" path="~/.config/chromium/Default/databases/Databases.db"/>
    <action command="delete" search="glob" path="$localappdata\Chromium\User Data\Default\Local Storage\http*localstoragex"/>
    <action command="delete" search="glob" path="~/.config/chromium/Default/Local Storage/http*localstorage"/>
    <action command="delete" search="walk.all" path="$localappdata\Chromium\User Data\Default\databases\http*\"/>
    <action command="delete" search="walk.all" path="~/.config/chromium/Default/databases/http*/"/>
  </option>
  <option id="form_history">
    <label>Form history</label>
    <description>A history of forms entered in web sites</description>
    <action command="chrome.autofill" search="file" path="$localappdata\Chromium\User Data\Default\Web Data"/>
    <action command="chrome.autofill" search="file" path="~/.config/chromium/Default/Web Data"/>
  </option>
  <option id="history">
    <label>History</label>
    <description>Delete the history which includes visited sites, downloads, and thumbnails</description>
    <!-- keep /History before /Favicons -->
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Archived History"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Archived History-journal"/>
    <action command="chrome.history" search="file" path="$localappdata\Chromium\User Data\Default\History"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\History Provider Cache"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\History-journal"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Network Action Predictor"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Network Action Predictor-journal"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Origin Bound Certs-journal"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Shortcuts"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Shortcuts-journal"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Thumbnails"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Thumbnails-journal"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Top Sites"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Top Sites-journal"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Visited Links"/>
    <action command="delete" search="glob" path="$localappdata\Chromium\User Data\Default\History Index ????-??"/>
    <action command="delete" search="glob" path="$localappdata\Chromium\User Data\Default\History Index ????-??-journal"/>
    <action command="delete" search="walk.files" path="$localappdata\Chromium\User Data\Default\Session Storage\"/>
    <action command="delete" search="walk.files" path="$localappdata\Chromium\User Data\Default\JumpListIcons\"/>
    <action command="delete" search="walk.files" path="$localappdata\Chromium\User Data\Default\JumpListIconsOld\"/>
    <action command="delete" search="file" path="~/.cxchromium/chromium/drive_c/windows/profiles/crossover/Local Settings/Application Data/Google/Chrome/User Data/Default/Archived History"/>
    <action command="delete" search="glob" path="~/.cxchromium/chromium/drive_c/windows/profiles/crossover/Local Settings/Application Data/Google/Chrome/User Data/Default/History*"/>
    <action command="chrome.history" search="file" path="~/.config/chromium/Default/History"/>
    <action command="chrome.favicons" search="file" path="~/.config/chromium/Default/Favicons"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Archived History"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Archived History-journal"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/History Provider Cache"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/History-journal"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Network Action Predictor"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Network Action Predictor-journal"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Origin Bound Certs-journal"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Shortcuts"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Shortcuts-journal"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Thumbnails"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Thumbnails-journal"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Top Sites"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Top Sites-journal"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Visited Links"/>
    <action command="delete" search="glob" path="~/.config/chromium/Default/History Index ????-??"/>
    <action command="delete" search="glob" path="~/.config/chromium/Default/History Index ????-??-journal"/>
    <action command="delete" search="walk.files" path="~/.config/chromium/Default/Session Storage/"/>
  </option>
  <option id="passwords">
    <label>Passwords</label>
    <description>A database of usernames and passwords as well as a list of sites that should not store passwords</description>
    <action command="delete" search="file" path="~/.config/chromium/Default/Login Data"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Login Data-journal"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Login Data"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Login Data-journal"/>
  </option>
  <option id="search_engines">
    <label>Search engines</label>
    <description>Reset the search engine usage history and delete non-factory search engines, some of which are added automatically</description>
    <action command="chrome.keywords" search="file" path="~/.config/chromium/Default/Web Data"/>
    <action command="chrome.keywords" search="file" path="$localappdata\Chromium\User Data\Default\Web Data"/>
  </option>
  <option id="current_session">
    <label>Current session</label>
    <description>Delete the current session</description>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Current Session"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Current Tabs"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Last Session"/>
    <action command="delete" search="file" path="$localappdata\Chromium\User Data\Default\Last Tabs"/>
    <action command="delete" search="file" path="~/.cxchromium/chromium/drive_c/windows/profiles/crossover/Local Settings/Application Data/Google/Chrome/User Data/Default/Current Session"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Current Session"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Current Tabs"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Last Session"/>
    <action command="delete" search="file" path="~/.config/chromium/Default/Last Tabs"/>
  </option>
  <option id="vacuum">
    <label>Vacuum</label>
    <description>Clean database fragmentation to reduce space and improve speed without removing any data</description>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Chromium\User Data\Default\Archived History"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Chromium\User Data\Default\Cookies"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Chromium\User Data\Default\Cookies-journal"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Chromium\User Data\Default\Extension Cookies"/>
    <action command="sqlite.vacuum" search="glob" path="$localappdata\Chromium\User Data\Default\History Index ????-??"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Chromium\User Data\Default\History"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Chromium\User Data\Default\Thumbnails"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Chromium\User Data\Default\Top Sites"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Chromium\User Data\Default\Web Data"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Chromium\User Data\Default\Plugin Data\Google Gears\localserver.db"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Chromium\User Data\Default\Plugin Data\Google Gears\permissions.db"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/chromium/Default/Archived History"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/chromium/Default/Cookies"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/chromium/Default/Cookies-journal"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/chromium/Default/Extension Cookies"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/chromium/Default/History"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/chromium/Default/Thumbnails"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/chromium/Default/Top Sites"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/chromium/Default/Web Data"/>
    <action command="sqlite.vacuum" search="glob" path="~/.config/chromium/Default/History Index ????-??"/>
  </option>
</cleaner>
