namespace data_reduction_proxy {
class DataReductionProxyConfigurator;
class DataReductionProxySettings;
+class DataReductionProxyStatisticsPrefs;
}
namespace net {
content::WebContents* web_contents);
static void SetDataReductionProxyEnabled(bool enabled);
+ static void SetLegacyCacheRemovalDelayForTest(int delay_ms);
// Maps to BrowserMainParts::PreMainMessageLoopRun.
void PreMainMessageLoopRun();
void CreateUserPrefServiceIfNecessary();
// content::BrowserContext implementation.
- virtual base::FilePath GetPath() const OVERRIDE;
- virtual bool IsOffTheRecord() const OVERRIDE;
- virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
+ virtual base::FilePath GetPath() const override;
+ virtual bool IsOffTheRecord() const override;
+ virtual net::URLRequestContextGetter* GetRequestContext() override;
virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
- int renderer_child_id) OVERRIDE;
- virtual net::URLRequestContextGetter* GetMediaRequestContext() OVERRIDE;
+ int renderer_child_id) override;
+ virtual net::URLRequestContextGetter* GetMediaRequestContext() override;
virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
- int renderer_child_id) OVERRIDE;
+ int renderer_child_id) override;
virtual net::URLRequestContextGetter*
GetMediaRequestContextForStoragePartition(
- const base::FilePath& partition_path, bool in_memory) OVERRIDE;
- virtual content::ResourceContext* GetResourceContext() OVERRIDE;
+ const base::FilePath& partition_path, bool in_memory) override;
+ virtual content::ResourceContext* GetResourceContext() override;
virtual content::DownloadManagerDelegate*
- GetDownloadManagerDelegate() OVERRIDE;
- virtual content::BrowserPluginGuestManager* GetGuestManager() OVERRIDE;
- virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
- virtual content::PushMessagingService* GetPushMessagingService() OVERRIDE;
- virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() OVERRIDE;
+ GetDownloadManagerDelegate() override;
+ virtual content::BrowserPluginGuestManager* GetGuestManager() override;
+ virtual storage::SpecialStoragePolicy* GetSpecialStoragePolicy() override;
+ virtual content::PushMessagingService* GetPushMessagingService() override;
+ virtual content::SSLHostStateDelegate* GetSSLHostStateDelegate() override;
// visitedlink::VisitedLinkDelegate implementation.
virtual void RebuildTable(
- const scoped_refptr<URLEnumerator>& enumerator) OVERRIDE;
+ const scoped_refptr<URLEnumerator>& enumerator) override;
private:
+ void CreateDataReductionProxyStatisticsIfNecessary();
static bool data_reduction_proxy_enabled_;
+ // Delay, in milliseconds, before removing the legacy cache dir.
+ // This is non-const for testing purposes.
+ static int legacy_cache_removal_delay_ms_;
+
// The file path where data for this context is persisted.
base::FilePath context_storage_path_;
scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator>
data_reduction_proxy_configurator_;
+ scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>
+ data_reduction_proxy_statistics_;
scoped_ptr<data_reduction_proxy::DataReductionProxySettings>
data_reduction_proxy_settings_;