| 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/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 188 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 189 DCHECK(!app_id.empty()); | 189 DCHECK(!app_id.empty()); |
| 190 LazyInitialize(); | 190 LazyInitialize(); |
| 191 | 191 |
| 192 // Keep a map of request context getters, one per requested app ID. | 192 // Keep a map of request context getters, one per requested app ID. |
| 193 ChromeURLRequestContextGetterMap::iterator iter = | 193 ChromeURLRequestContextGetterMap::iterator iter = |
| 194 app_request_context_getter_map_.find(app_id); | 194 app_request_context_getter_map_.find(app_id); |
| 195 if (iter != app_request_context_getter_map_.end()) | 195 if (iter != app_request_context_getter_map_.end()) |
| 196 return iter->second; | 196 return iter->second; |
| 197 | 197 |
| 198 | |
| 199 ChromeURLRequestContextGetter* context = | 198 ChromeURLRequestContextGetter* context = |
| 200 ChromeURLRequestContextGetter::CreateOriginalForIsolatedApp( | 199 ChromeURLRequestContextGetter::CreateOriginalForIsolatedApp( |
| 201 profile_, io_data_, app_id); | 200 profile_, io_data_, app_id); |
| 202 app_request_context_getter_map_[app_id] = context; | 201 app_request_context_getter_map_[app_id] = context; |
| 203 | 202 |
| 204 return context; | 203 return context; |
| 205 } | 204 } |
| 206 | 205 |
| 207 void ProfileImplIOData::Handle::ClearNetworkingHistorySince( | 206 void ProfileImplIOData::Handle::ClearNetworkingHistorySince( |
| 208 base::Time time) { | 207 base::Time time) { |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 void ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread( | 531 void ProfileImplIOData::ClearNetworkingHistorySinceOnIOThread( |
| 533 base::Time time) { | 532 base::Time time) { |
| 534 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 533 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 535 LazyInitialize(); | 534 LazyInitialize(); |
| 536 | 535 |
| 537 DCHECK(transport_security_state()); | 536 DCHECK(transport_security_state()); |
| 538 transport_security_state()->DeleteSince(time); | 537 transport_security_state()->DeleteSince(time); |
| 539 DCHECK(http_server_properties_manager()); | 538 DCHECK(http_server_properties_manager()); |
| 540 http_server_properties_manager()->Clear(); | 539 http_server_properties_manager()->Clear(); |
| 541 } | 540 } |
| OLD | NEW |