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

    BleachBit
    Copyright (C) 2008-2015 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="google_chrome">
  <label>Google Chrome</label>
  <description>Web browser</description>
  <running type="exe">chrome.exe</running>
  <running type="exe">chrome</running>
  <option id="cache">
    <label>Cache</label>
    <description>Delete the web cache, which reduces time to display revisited pages</description>
    <action command="delete" search="glob" path="$localappdata\Google\Chrome\User Data\B*.tmp"/>
    <action command="delete" search="walk.all" path="$localappdata\Google\Chrome\User Data\Default\Application Cache\"/>
    <action command="delete" search="walk.all" path="$localappdata\Google\Chrome\User Data\Default\Pepper Data\Shockwave Flash\CacheWritableAdobeRoot\"/>
    <action command="delete" search="walk.files" path="$localappdata\Google\Chrome\User Data\Default\Cache\"/>
    <action command="delete" search="walk.files" path="$localappdata\Google\Chrome\User Data\Default\GPUCache\"/>
    <action command="delete" search="walk.files" path="$localappdata\Google\Chrome\User Data\Default\Media Cache\"/>
    <action command="json" search="file" path="$localappdata\Google\Chrome\User Data\Default\Preferences" address="dns_prefetching/host_referral_list"/>
    <action command="json" search="file" path="$localappdata\Google\Chrome\User Data\Default\Preferences" address="dns_prefetching/startup_list"/>
    <action command="json" search="file" path="$localappdata\Google\Chrome\User Data\Default\Preferences" address="net/http_server_properties/servers"/>
    <action command="json" search="file" path="$localappdata\Google\Chrome\User Data\Local State" address="HostReferralList"/>
    <action command="json" search="file" path="$localappdata\Google\Chrome\User Data\Local State" address="StartupDNSPrefetchList"/>
    <action command="delete" search="walk.all" path="~/.config/google-chrome/Default/Pepper Data/Shockwave Flash/CacheWritableAdobeRoot/"/>
    <action command="delete" search="walk.all" path="~/.config/google-chrome/Default/Application Cache/"/>
    <action command="delete" search="walk.files" path="~/.cache/google-chrome/"/>
    <action command="json" search="file" path="~/.config/google-chrome/Default/Preferences" address="dns_prefetching/host_referral_list"/>
    <action command="json" search="file" path="~/.config/google-chrome/Default/Preferences" address="dns_prefetching/startup_list"/>
    <action command="json" search="file" path="~/.config/google-chrome/Default/Preferences" address="net/http_server_properties/servers"/>
    <action command="json" search="file" path="~/.config/google-chrome/Local State" address="HostReferralList"/>
    <action command="json" search="file" path="~/.config/google-chrome/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\Google\Chrome\User Data\Default\Cookies"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Cookies-journal"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Extension Cookies"/>
    <action command="delete" search="walk.all" path="$localappdata\Google\Chrome\User Data\Default\Pepper Data\Shockwave Flash\WritableRoot\"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Cookies"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Cookies-journal"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Extension Cookies"/>
    <action command="delete" search="walk.all" path="~/.config/google-chrome/Default/Pepper Data/Shockwave Flash/WritableRoot/"/>
  </option>
  <option id="dom">
    <label>DOM Storage</label>
    <description>Delete HTML5 cookies</description>
    <!-- Examples for Google Chrome 7.0 on Fedora 13.  Notice we avoid deleting extension (add-on) preferences.
        ~/.config/google-chrome/Default/Local Storage/chrome-extension_mmffncokckfccddfenhkhnllmlobdahm_0.localstorage
        ~/.config/google-chrome/Default/Local Storage/http_samy.pl_0.localstorage -->
    <action command="chrome.databases_db" search="file" path="$localappdata\Google\Chrome\User Data\Default\databases\Databases.db"/>
    <action command="chrome.databases_db" search="file" path="~/.config/google-chrome/Default/databases/Databases.db"/>
    <action command="delete" search="glob" path="$localappdata\Google\Chrome\User Data\Default\Local Storage\http*localstorage"/>
    <action command="delete" search="glob" path="$localappdata\Google\Chrome\User Data\Default\Local Storage\http*localstorage-journal"/>
    <action command="delete" search="glob" path="~/.config/google-chrome/Default/Local Storage/http*localstorage"/>
    <action command="delete" search="glob" path="~/.config/google-chrome/Default/Local Storage/http*localstorage-journal"/>
    <action command="delete" search="walk.all" path="$localappdata\Google\Chrome\User Data\Default\databases\http*\"/>
    <action command="delete" search="walk.all" path="~/.config/google-chrome/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\Google\Chrome\User Data\Default\Web Data"/>
    <action command="chrome.autofill" search="file" path="~/.config/google-chrome/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="chrome.history" search="file" path="$localappdata\Google\Chrome\User Data\Default\History"/>
    <action command="chrome.favicons" search="file" path="$localappdata\Google\Chrome\User Data\Default\Favicons"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\chrome_shutdown_ms.txt"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Safe Browsing Cookies-journal"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Archived History"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Archived History-journal"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\History Provider Cache"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\History-journal"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Network Action Predictor"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Network Action Predictor"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Network Action Predictor-journal"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Origin Bound Certs-journal"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\QuotaManager-journal"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Shortcuts"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Shortcuts-journal"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Thumbnails"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Thumbnails-journal"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Top Sites"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Top Sites-journal"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Visited Links"/>
    <action command="delete" search="glob" path="$localappdata\Google\Chrome\User Data\Default\History Index ????-??"/>
    <action command="delete" search="glob" path="$localappdata\Google\Chrome\User Data\Default\History Index ????-??-journal"/>
    <action command="delete" search="walk.files" path="$localappdata\Google\Chrome\User Data\Default\Session Storage\"/>
    <action command="delete" search="walk.files" path="$localappdata\Google\Chrome\User Data\Default\JumpListIcons\"/>
    <action command="delete" search="walk.files" path="$localappdata\Google\Chrome\User Data\Default\JumpListIconsOld\"/>
    <action command="chrome.history" search="file" path="~/.config/google-chrome/Default/History"/>
    <action command="chrome.favicons" search="file" path="~/.config/google-chrome/Default/Favicons"/>
    <action command="delete" search="file" path="~/.config/google-chrome/chrome_shutdown_ms.txt"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Safe Browsing Cookies-journal"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Archived History"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Archived History-journal"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/History Provider Cache"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/History-journal"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Network Action Predictor"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Network Action Predictor-journal"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Origin Bound Certs-journal"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Shortcuts"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Shortcuts-journal"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Thumbnails"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Thumbnails-journal"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Top Sites"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Top Sites-journal"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Visited Links"/>
    <action command="delete" search="glob" path="~/.config/google-chrome/Default/History Index ????-??"/>
    <action command="delete" search="glob" path="~/.config/google-chrome/Default/History Index ????-??-journal"/>
    <action command="delete" search="walk.files" path="~/.config/google-chrome/Default/Session Storage/"/>
    <action command="delete" search="walk.files" path="~/.config/google-chrome/Default/Sync Data Backup/"/>
  </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>
    <warning>This option will delete your saved passwords.</warning>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Login Data"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Login Data-journal"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Login Data"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Login Data-journal"/>
  </option>
  <option id="search_engines">
    <label>Search engines</label>
    <description translators="'Factory' means a search engine that is installed by default 'from the factory,' but this is different than a 'default search engine' https://lists.launchpad.net/launchpad-translators/msg00283.html">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/google-chrome/Default/Web Data"/>
    <action command="chrome.keywords" search="file" path="$localappdata\Google\Chrome\User Data\Default\Web Data"/>
  </option>
  <option id="session">
    <label>Session</label>
    <description>Delete the current and last sessions</description>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Current Session"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Current Tabs"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Last Session"/>
    <action command="delete" search="file" path="$localappdata\Google\Chrome\User Data\Default\Last Tabs"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Current Session"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Current Tabs"/>
    <action command="delete" search="file" path="~/.config/google-chrome/Default/Last Session"/>
    <action command="delete" search="file" path="~/.config/google-chrome/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\Google\Chrome\User Data\Default\Archived History"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Google\Chrome\User Data\Default\Cookies"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Google\Chrome\User Data\Default\Extension Cookies"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Google\Chrome\User Data\Default\History"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Google\Chrome\User Data\Default\Plugin Data\Google Gears\localserver.db"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Google\Chrome\User Data\Default\Plugin Data\Google Gears\permissions.db"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Google\Chrome\User Data\Default\Thumbnails"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Google\Chrome\User Data\Default\Top Sites"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Google\Chrome\User Data\Default\Web Data"/>
    <action command="sqlite.vacuum" search="file" path="$localappdata\Google\Chrome\User Data\Default\databases\Databases.db"/>
    <action command="sqlite.vacuum" search="glob" path="$localappdata\Google\Chrome\User Data\Default\History Index ????-??"/>
    <action command="sqlite.vacuum" search="glob" path="$localappdata\Google\Chrome\User Data\Default\databases\http*\?"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/google-chrome/Default/Cookies"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/google-chrome/Default/Extension Cookies"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/google-chrome/Default/History"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/google-chrome/Default/Thumbnails"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/google-chrome/Default/Top Sites"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/google-chrome/Default/Web Data"/>
    <action command="sqlite.vacuum" search="file" path="~/.config/google-chrome/Default/databases/Databases.db"/>
    <action command="sqlite.vacuum" search="glob" path="~/.config/google-chrome/Default/History Index ????-??"/>
    <action command="sqlite.vacuum" search="glob" path="~/.config/google-chrome/Default/databases/http*/?"/>
  </option>
</cleaner>
