OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/profiles/profile_impl_io_data.h" | 5 #include "chrome/browser/profiles/profile_impl_io_data.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "content/public/browser/notification_service.h" | 35 #include "content/public/browser/notification_service.h" |
36 #include "content/public/browser/resource_context.h" | 36 #include "content/public/browser/resource_context.h" |
37 #include "content/public/browser/storage_partition.h" | 37 #include "content/public/browser/storage_partition.h" |
38 #include "extensions/common/constants.h" | 38 #include "extensions/common/constants.h" |
39 #include "net/base/cache_type.h" | 39 #include "net/base/cache_type.h" |
40 #include "net/ftp/ftp_network_layer.h" | 40 #include "net/ftp/ftp_network_layer.h" |
41 #include "net/http/http_cache.h" | 41 #include "net/http/http_cache.h" |
42 #include "net/ssl/server_bound_cert_service.h" | 42 #include "net/ssl/server_bound_cert_service.h" |
43 #include "net/url_request/protocol_intercept_job_factory.h" | 43 #include "net/url_request/protocol_intercept_job_factory.h" |
44 #include "net/url_request/url_request_job_factory_impl.h" | 44 #include "net/url_request/url_request_job_factory_impl.h" |
45 #include "webkit/quota/special_storage_policy.h" | 45 #include "webkit/browser/quota/special_storage_policy.h" |
46 | 46 |
47 #if defined(OS_ANDROID) | 47 #if defined(OS_ANDROID) |
48 #include "chrome/app/android/chrome_data_reduction_proxy_android.h" | 48 #include "chrome/app/android/chrome_data_reduction_proxy_android.h" |
49 #endif | 49 #endif |
50 | 50 |
51 namespace { | 51 namespace { |
52 | 52 |
53 net::BackendType ChooseCacheBackendType() { | 53 net::BackendType ChooseCacheBackendType() { |
54 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 54 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
55 if (command_line.HasSwitch(switches::kUseSimpleCacheBackend)) { | 55 if (command_line.HasSwitch(switches::kUseSimpleCacheBackend)) { |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 const base::Closure& completion) { | 689 const base::Closure& completion) { |
690 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 690 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
691 DCHECK(initialized()); | 691 DCHECK(initialized()); |
692 | 692 |
693 DCHECK(transport_security_state()); | 693 DCHECK(transport_security_state()); |
694 // Completes synchronously. | 694 // Completes synchronously. |
695 transport_security_state()->DeleteAllDynamicDataSince(time); | 695 transport_security_state()->DeleteAllDynamicDataSince(time); |
696 DCHECK(http_server_properties_manager_); | 696 DCHECK(http_server_properties_manager_); |
697 http_server_properties_manager_->Clear(completion); | 697 http_server_properties_manager_->Clear(completion); |
698 } | 698 } |
OLD | NEW |