| 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/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/strings/string_number_conversions.h" | 11 #include "base/strings/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/cert/crl_set.h" |
| 19 #include "net/ssl/ssl_config_service.h" | 19 #include "net/ssl/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 | 24 |
| 25 bool CRLSetFetcher::GetCRLSetFilePath(base::FilePath* path) const { | 25 bool CRLSetFetcher::GetCRLSetFilePath(base::FilePath* path) const { |
| 26 bool ok = PathService::Get(chrome::DIR_USER_DATA, path); | 26 bool ok = PathService::Get(chrome::DIR_USER_DATA, path); |
| 27 if (!ok) { | 27 if (!ok) { |
| 28 NOTREACHED(); | 28 NOTREACHED(); |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 BrowserThread::IO, FROM_HERE, | 199 BrowserThread::IO, FROM_HERE, |
| 200 base::Bind( | 200 base::Bind( |
| 201 &CRLSetFetcher::SetCRLSetIfNewer, this, crl_set_))) { | 201 &CRLSetFetcher::SetCRLSetIfNewer, this, crl_set_))) { |
| 202 NOTREACHED(); | 202 NOTREACHED(); |
| 203 } | 203 } |
| 204 | 204 |
| 205 return true; | 205 return true; |
| 206 } | 206 } |
| 207 | 207 |
| 208 CRLSetFetcher::~CRLSetFetcher() {} | 208 CRLSetFetcher::~CRLSetFetcher() {} |
| OLD | NEW |