| 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 #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/component_updater/component_updater_service.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 class CRLSetFetcher : public component_updater::ComponentInstaller, | 24 namespace component_updater { |
| 25 class ComponentUpdateService; |
| 26 } |
| 27 |
| 28 class CRLSetFetcher : public update_client::ComponentInstaller, |
| 25 public base::RefCountedThreadSafe<CRLSetFetcher> { | 29 public base::RefCountedThreadSafe<CRLSetFetcher> { |
| 26 public: | 30 public: |
| 27 CRLSetFetcher(); | 31 CRLSetFetcher(); |
| 28 | 32 |
| 29 void StartInitialLoad(component_updater::ComponentUpdateService* cus, | 33 void StartInitialLoad(component_updater::ComponentUpdateService* cus, |
| 30 const base::FilePath& path); | 34 const base::FilePath& path); |
| 31 | 35 |
| 32 // DeleteFromDisk asynchronously delete the CRLSet file. | 36 // DeleteFromDisk asynchronously delete the CRLSet file. |
| 33 void DeleteFromDisk(const base::FilePath& path); | 37 void DeleteFromDisk(const base::FilePath& path); |
| 34 | 38 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 base::FilePath crl_path_; | 82 base::FilePath crl_path_; |
| 79 | 83 |
| 80 // We keep a pointer to the current CRLSet for use on the FILE thread when | 84 // We keep a pointer to the current CRLSet for use on the FILE thread when |
| 81 // applying delta updates. | 85 // applying delta updates. |
| 82 scoped_refptr<net::CRLSet> crl_set_; | 86 scoped_refptr<net::CRLSet> crl_set_; |
| 83 | 87 |
| 84 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); | 88 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); |
| 85 }; | 89 }; |
| 86 | 90 |
| 87 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ | 91 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ |
| OLD | NEW |