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

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

Issue 897873002: Make ComponentInstaller refcounted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@2015_01_19_component_installer
Patch Set: fix Created 5 years, 10 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
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 #ifndef CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ 5 #ifndef CHROME_BROWSER_NET_CRL_SET_FETCHER_H_
6 #define CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ 6 #define CHROME_BROWSER_NET_CRL_SET_FETCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "components/update_client/update_client.h" 13 #include "components/update_client/update_client.h"
14 14
15 namespace base { 15 namespace base {
16 class DictionaryValue; 16 class DictionaryValue;
17 class FilePath; 17 class FilePath;
18 } 18 }
19 19
20 namespace net { 20 namespace net {
21 class CRLSet; 21 class CRLSet;
22 } 22 }
23 23
24 namespace component_updater { 24 namespace component_updater {
25 class ComponentUpdateService; 25 class ComponentUpdateService;
26 } 26 }
27 27
28 class CRLSetFetcher : public update_client::ComponentInstaller, 28 class CRLSetFetcher : public update_client::ComponentInstaller {
29 public base::RefCountedThreadSafe<CRLSetFetcher> {
30 public: 29 public:
31 CRLSetFetcher(); 30 CRLSetFetcher();
32 31
33 void StartInitialLoad(component_updater::ComponentUpdateService* cus, 32 void StartInitialLoad(component_updater::ComponentUpdateService* cus,
34 const base::FilePath& path); 33 const base::FilePath& path);
35 34
36 // DeleteFromDisk asynchronously delete the CRLSet file. 35 // DeleteFromDisk asynchronously delete the CRLSet file.
37 void DeleteFromDisk(const base::FilePath& path); 36 void DeleteFromDisk(const base::FilePath& path);
38 37
39 // ComponentInstaller interface 38 // ComponentInstaller interface
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 base::FilePath crl_path_; 81 base::FilePath crl_path_;
83 82
84 // We keep a pointer to the current CRLSet for use on the FILE thread when 83 // We keep a pointer to the current CRLSet for use on the FILE thread when
85 // applying delta updates. 84 // applying delta updates.
86 scoped_refptr<net::CRLSet> crl_set_; 85 scoped_refptr<net::CRLSet> crl_set_;
87 86
88 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); 87 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher);
89 }; 88 };
90 89
91 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ 90 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698