| Index: chrome/browser/appcache/chrome_appcache_service.h
|
| diff --git a/chrome/browser/appcache/chrome_appcache_service.h b/chrome/browser/appcache/chrome_appcache_service.h
|
| index dbc0616033ac1f179d9525bd3b32073c84ec9c2d..db2efdebcaa82bb8607a7fe91a502f896ca3a107 100644
|
| --- a/chrome/browser/appcache/chrome_appcache_service.h
|
| +++ b/chrome/browser/appcache/chrome_appcache_service.h
|
| @@ -35,14 +35,15 @@ class ChromeAppCacheService
|
|
|
| void InitializeOnIOThread(
|
| const FilePath& profile_path, bool is_incognito,
|
| - scoped_refptr<HostContentSettingsMap> content_settings_map);
|
| + scoped_refptr<HostContentSettingsMap> content_settings_map,
|
| + bool clear_local_state_on_exit);
|
|
|
| // Helpers used by the extension service to grant and revoke
|
| // unlimited storage to app extensions.
|
| void SetOriginQuotaInMemory(const GURL& origin, int64 quota);
|
| void ResetOriginQuotaInMemory(const GURL& origin);
|
|
|
| - static void ClearLocalState(const FilePath& profile_path);
|
| + void SetClearLocalStateOnExit(bool clear_local_state);
|
|
|
| private:
|
| friend class BrowserThread;
|
| @@ -62,6 +63,10 @@ class ChromeAppCacheService
|
|
|
| scoped_refptr<HostContentSettingsMap> host_contents_settings_map_;
|
| NotificationRegistrar registrar_;
|
| + // Protects the |clear_local_state_on_exit_| flag.
|
| + Lock lock_;
|
| + bool clear_local_state_on_exit_;
|
| + FilePath cache_path_;
|
| };
|
|
|
| #endif // CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_
|
|
|