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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/file_util.h" 7 #include "base/file_util.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/rand_util.h" 9 #include "base/rand_util.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "chrome/browser/component_updater/component_updater_service.h" 12 #include "chrome/browser/component_updater/component_updater_service.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/common/chrome_constants.h" 14 #include "chrome/common/chrome_constants.h"
15 #include "chrome/common/chrome_paths.h" 15 #include "chrome/common/chrome_paths.h"
16 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 #include "net/base/crl_set.h" 17 #include "net/base/crl_set.h"
18 #include "net/base/ssl_config_service.h" 18 #include "net/base/ssl_config_service.h"
19 19
20 using content::BrowserThread;
21
20 CRLSetFetcher::CRLSetFetcher() { 22 CRLSetFetcher::CRLSetFetcher() {
21 } 23 }
22 24
23 CRLSetFetcher::~CRLSetFetcher() { 25 CRLSetFetcher::~CRLSetFetcher() {
24 } 26 }
25 27
26 bool CRLSetFetcher::GetCRLSetFilePath(FilePath* path) const { 28 bool CRLSetFetcher::GetCRLSetFilePath(FilePath* path) const {
27 bool ok = PathService::Get(chrome::DIR_USER_DATA, path); 29 bool ok = PathService::Get(chrome::DIR_USER_DATA, path);
28 if (!ok) { 30 if (!ok) {
29 NOTREACHED(); 31 NOTREACHED();
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 const FilePath& unpack_path) { 162 const FilePath& unpack_path) {
161 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); 163 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
162 164
163 FilePath crl_set_file_path = unpack_path.Append(FILE_PATH_LITERAL("crl-set")); 165 FilePath crl_set_file_path = unpack_path.Append(FILE_PATH_LITERAL("crl-set"));
164 FilePath save_to; 166 FilePath save_to;
165 if (!GetCRLSetFilePath(&save_to)) 167 if (!GetCRLSetFilePath(&save_to))
166 return true; 168 return true;
167 LoadFromDisk(crl_set_file_path, save_to, NULL); 169 LoadFromDisk(crl_set_file_path, save_to, NULL);
168 return true; 170 return true;
169 } 171 }
OLDNEW
« no previous file with comments | « chrome/browser/net/cookie_policy_browsertest.cc ('k') | chrome/browser/net/gaia/token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698