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

Side by Side Diff: chrome/browser/net/crl_set_fetcher.cc

Issue 10071032: RefCounted types should not have public destructors, chrome/browser/ part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implementation fixes Created 8 years, 8 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
OLDNEW
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/net/crl_set_fetcher.h" 5 #include "chrome/browser/net/crl_set_fetcher.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/rand_util.h" 10 #include "base/rand_util.h"
11 #include "base/string_number_conversions.h" 11 #include "base/string_number_conversions.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "chrome/browser/component_updater/component_updater_service.h" 13 #include "chrome/browser/component_updater/component_updater_service.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/common/chrome_constants.h" 15 #include "chrome/common/chrome_constants.h"
16 #include "chrome/common/chrome_paths.h" 16 #include "chrome/common/chrome_paths.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "net/base/crl_set.h" 18 #include "net/base/crl_set.h"
19 #include "net/base/ssl_config_service.h" 19 #include "net/base/ssl_config_service.h"
20 20
21 using content::BrowserThread; 21 using content::BrowserThread;
22 22
23 CRLSetFetcher::CRLSetFetcher() : cus_(NULL) { 23 CRLSetFetcher::CRLSetFetcher() : cus_(NULL) {}
24 }
25
26 CRLSetFetcher::~CRLSetFetcher() {
27 }
28 24
29 bool CRLSetFetcher::GetCRLSetFilePath(FilePath* path) const { 25 bool CRLSetFetcher::GetCRLSetFilePath(FilePath* path) const {
30 bool ok = PathService::Get(chrome::DIR_USER_DATA, path); 26 bool ok = PathService::Get(chrome::DIR_USER_DATA, path);
31 if (!ok) { 27 if (!ok) {
32 NOTREACHED(); 28 NOTREACHED();
33 return false; 29 return false;
34 } 30 }
35 *path = path->Append(chrome::kCRLSetFilename); 31 *path = path->Append(chrome::kCRLSetFilename);
36 return true; 32 return true;
37 } 33 }
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 196
201 if (!BrowserThread::PostTask( 197 if (!BrowserThread::PostTask(
202 BrowserThread::IO, FROM_HERE, 198 BrowserThread::IO, FROM_HERE,
203 base::Bind( 199 base::Bind(
204 &CRLSetFetcher::SetCRLSetIfNewer, this, crl_set_))) { 200 &CRLSetFetcher::SetCRLSetIfNewer, this, crl_set_))) {
205 NOTREACHED(); 201 NOTREACHED();
206 } 202 }
207 203
208 return true; 204 return true;
209 } 205 }
206
207 CRLSetFetcher::~CRLSetFetcher() {}
OLDNEW
« no previous file with comments | « chrome/browser/net/crl_set_fetcher.h ('k') | chrome/browser/net/sqlite_persistent_cookie_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698