Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(690)

Side by Side Diff: chrome/browser/cert_store.cc

Issue 42054: Stop using renderer specific host ids in ResourceDispatcher. This allows it ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698