| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.h" | 5 #include "ios/chrome/browser/browser_state/chrome_browser_state_impl_io_data.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "net/extras/sqlite/sqlite_channel_id_store.h" | 37 #include "net/extras/sqlite/sqlite_channel_id_store.h" |
| 38 #include "net/http/http_cache.h" | 38 #include "net/http/http_cache.h" |
| 39 #include "net/http/http_network_session.h" | 39 #include "net/http/http_network_session.h" |
| 40 #include "net/http/http_server_properties_manager.h" | 40 #include "net/http/http_server_properties_manager.h" |
| 41 #include "net/sdch/sdch_owner.h" | 41 #include "net/sdch/sdch_owner.h" |
| 42 #include "net/ssl/channel_id_service.h" | 42 #include "net/ssl/channel_id_service.h" |
| 43 #include "net/ssl/default_channel_id_store.h" | 43 #include "net/ssl/default_channel_id_store.h" |
| 44 #include "net/url_request/url_request_intercepting_job_factory.h" | 44 #include "net/url_request/url_request_intercepting_job_factory.h" |
| 45 #include "net/url_request/url_request_job_factory_impl.h" | 45 #include "net/url_request/url_request_job_factory_impl.h" |
| 46 | 46 |
| 47 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 48 #error "This file requires ARC support." |
| 49 #endif |
| 50 |
| 47 namespace { | 51 namespace { |
| 48 | 52 |
| 49 // Connects the SdchOwner's storage to the prefs. | 53 // Connects the SdchOwner's storage to the prefs. |
| 50 class SdchOwnerPrefStorage : public net::SdchOwner::PrefStorage, | 54 class SdchOwnerPrefStorage : public net::SdchOwner::PrefStorage, |
| 51 public PrefStore::Observer { | 55 public PrefStore::Observer { |
| 52 public: | 56 public: |
| 53 explicit SdchOwnerPrefStorage(PersistentPrefStore* storage) | 57 explicit SdchOwnerPrefStorage(PersistentPrefStore* storage) |
| 54 : storage_(storage), storage_key_("SDCH"), init_observer_(nullptr) {} | 58 : storage_(storage), storage_key_("SDCH"), init_observer_(nullptr) {} |
| 55 ~SdchOwnerPrefStorage() override { | 59 ~SdchOwnerPrefStorage() override { |
| 56 if (init_observer_) | 60 if (init_observer_) |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 const base::Closure& completion) { | 479 const base::Closure& completion) { |
| 476 DCHECK_CURRENTLY_ON(web::WebThread::IO); | 480 DCHECK_CURRENTLY_ON(web::WebThread::IO); |
| 477 DCHECK(initialized()); | 481 DCHECK(initialized()); |
| 478 | 482 |
| 479 DCHECK(transport_security_state()); | 483 DCHECK(transport_security_state()); |
| 480 // Completes synchronously. | 484 // Completes synchronously. |
| 481 transport_security_state()->DeleteAllDynamicDataSince(time); | 485 transport_security_state()->DeleteAllDynamicDataSince(time); |
| 482 DCHECK(http_server_properties_manager_); | 486 DCHECK(http_server_properties_manager_); |
| 483 http_server_properties_manager_->Clear(completion); | 487 http_server_properties_manager_->Clear(completion); |
| 484 } | 488 } |
| OLD | NEW |