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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 new ChromeURLRequestContextGetterVector()); | 376 new ChromeURLRequestContextGetterVector()); |
377 | 377 |
378 iter = isolated_media_request_context_getter_map_.begin(); | 378 iter = isolated_media_request_context_getter_map_.begin(); |
379 for (; iter != isolated_media_request_context_getter_map_.end(); ++iter) | 379 for (; iter != isolated_media_request_context_getter_map_.end(); ++iter) |
380 context_getters->push_back(iter->second); | 380 context_getters->push_back(iter->second); |
381 | 381 |
382 iter = app_request_context_getter_map_.begin(); | 382 iter = app_request_context_getter_map_.begin(); |
383 for (; iter != app_request_context_getter_map_.end(); ++iter) | 383 for (; iter != app_request_context_getter_map_.end(); ++iter) |
384 context_getters->push_back(iter->second); | 384 context_getters->push_back(iter->second); |
385 | 385 |
386 if (extensions_request_context_getter_) | 386 if (extensions_request_context_getter_.get()) |
387 context_getters->push_back(extensions_request_context_getter_); | 387 context_getters->push_back(extensions_request_context_getter_); |
388 | 388 |
389 if (media_request_context_getter_) | 389 if (media_request_context_getter_.get()) |
390 context_getters->push_back(media_request_context_getter_); | 390 context_getters->push_back(media_request_context_getter_); |
391 | 391 |
392 if (main_request_context_getter_) | 392 if (main_request_context_getter_.get()) |
393 context_getters->push_back(main_request_context_getter_); | 393 context_getters->push_back(main_request_context_getter_); |
394 | 394 |
395 return context_getters.Pass(); | 395 return context_getters.Pass(); |
396 } | 396 } |
397 | 397 |
398 ProfileImplIOData::LazyParams::LazyParams() | 398 ProfileImplIOData::LazyParams::LazyParams() |
399 : cache_max_size(0), | 399 : cache_max_size(0), |
400 media_cache_max_size(0), | 400 media_cache_max_size(0), |
401 session_cookie_mode( | 401 session_cookie_mode( |
402 content::CookieStoreConfig::EPHEMERAL_SESSION_COOKIES) {} | 402 content::CookieStoreConfig::EPHEMERAL_SESSION_COOKIES) {} |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 const base::Closure& completion) { | 835 const base::Closure& completion) { |
836 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 836 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
837 DCHECK(initialized()); | 837 DCHECK(initialized()); |
838 | 838 |
839 DCHECK(transport_security_state()); | 839 DCHECK(transport_security_state()); |
840 // Completes synchronously. | 840 // Completes synchronously. |
841 transport_security_state()->DeleteAllDynamicDataSince(time); | 841 transport_security_state()->DeleteAllDynamicDataSince(time); |
842 DCHECK(http_server_properties_manager_); | 842 DCHECK(http_server_properties_manager_); |
843 http_server_properties_manager_->Clear(completion); | 843 http_server_properties_manager_->Clear(completion); |
844 } | 844 } |
OLD | NEW |