| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/cert_store.h" | 5 #include "chrome/browser/cert_store.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 | 9 |
| 10 #include "chrome/browser/renderer_host/render_process_host.h" | 10 #include "chrome/browser/renderer_host/render_process_host.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 process_id_to_cert_id_.erase(ids_iter++); | 131 process_id_to_cert_id_.erase(ids_iter++); |
| 132 } | 132 } |
| 133 } | 133 } |
| 134 | 134 |
| 135 void CertStore::Observe(NotificationType type, | 135 void CertStore::Observe(NotificationType type, |
| 136 const NotificationSource& source, | 136 const NotificationSource& source, |
| 137 const NotificationDetails& details) { | 137 const NotificationDetails& details) { |
| 138 DCHECK(type == NotificationType::RENDERER_PROCESS_TERMINATED); | 138 DCHECK(type == NotificationType::RENDERER_PROCESS_TERMINATED); |
| 139 RenderProcessHost* rph = Source<RenderProcessHost>(source).ptr(); | 139 RenderProcessHost* rph = Source<RenderProcessHost>(source).ptr(); |
| 140 DCHECK(rph); | 140 DCHECK(rph); |
| 141 RemoveCertsForRenderProcesHost(rph->host_id()); | 141 RemoveCertsForRenderProcesHost(rph->pid()); |
| 142 } | 142 } |
| OLD | NEW |