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

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

Issue 107001: Move scoped_vector.h and stl_util-inl.h to base/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « chrome/browser/bookmarks/bookmark_model.cc ('k') | chrome/browser/command_updater.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 "base/stl_util-inl.h"
10 #include "chrome/browser/renderer_host/render_process_host.h" 11 #include "chrome/browser/renderer_host/render_process_host.h"
11 #include "chrome/browser/renderer_host/render_view_host.h" 12 #include "chrome/browser/renderer_host/render_view_host.h"
12 #include "chrome/browser/tab_contents/tab_contents.h" 13 #include "chrome/browser/tab_contents/tab_contents.h"
13 #include "chrome/common/notification_service.h" 14 #include "chrome/common/notification_service.h"
14 #include "chrome/common/stl_util-inl.h"
15 15
16 template <typename T> 16 template <typename T>
17 struct MatchSecond { 17 struct MatchSecond {
18 explicit MatchSecond(const T& t) : value(t) {} 18 explicit MatchSecond(const T& t) : value(t) {}
19 19
20 template<typename Pair> 20 template<typename Pair>
21 bool operator()(const Pair& p) const { 21 bool operator()(const Pair& p) const {
22 return (value == p.second); 22 return (value == p.second);
23 } 23 }
24 T value; 24 T value;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 void CertStore::Observe(NotificationType type, 138 void CertStore::Observe(NotificationType type,
139 const NotificationSource& source, 139 const NotificationSource& source,
140 const NotificationDetails& details) { 140 const NotificationDetails& details) {
141 DCHECK(type == NotificationType::RENDERER_PROCESS_TERMINATED || 141 DCHECK(type == NotificationType::RENDERER_PROCESS_TERMINATED ||
142 type == NotificationType::RENDERER_PROCESS_CLOSED); 142 type == NotificationType::RENDERER_PROCESS_CLOSED);
143 RenderProcessHost* rph = Source<RenderProcessHost>(source).ptr(); 143 RenderProcessHost* rph = Source<RenderProcessHost>(source).ptr();
144 DCHECK(rph); 144 DCHECK(rph);
145 RemoveCertsForRenderProcesHost(rph->pid()); 145 RemoveCertsForRenderProcesHost(rph->pid());
146 } 146 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model.cc ('k') | chrome/browser/command_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698