| 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 <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 11 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 13 #include "components/update_client/update_client.h" | 16 #include "components/update_client/update_client.h" |
| 14 | 17 |
| 15 namespace base { | 18 namespace base { |
| 16 class DictionaryValue; | 19 class DictionaryValue; |
| 17 class FilePath; | 20 class FilePath; |
| 18 } | 21 } |
| 19 | 22 |
| 20 namespace net { | 23 namespace net { |
| 21 class CRLSet; | 24 class CRLSet; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // LoadFromDisk runs on the FILE thread and attempts to load a CRL set | 66 // LoadFromDisk runs on the FILE thread and attempts to load a CRL set |
| 64 // from |load_from|. | 67 // from |load_from|. |
| 65 void LoadFromDisk(base::FilePath load_from, | 68 void LoadFromDisk(base::FilePath load_from, |
| 66 scoped_refptr<net::CRLSet>* out_crl_set); | 69 scoped_refptr<net::CRLSet>* out_crl_set); |
| 67 | 70 |
| 68 // SetCRLSetIfNewer runs on the IO thread and installs a CRL set | 71 // SetCRLSetIfNewer runs on the IO thread and installs a CRL set |
| 69 // as the global CRL set if it's newer than the existing one. | 72 // as the global CRL set if it's newer than the existing one. |
| 70 void SetCRLSetIfNewer(scoped_refptr<net::CRLSet> crl_set); | 73 void SetCRLSetIfNewer(scoped_refptr<net::CRLSet> crl_set); |
| 71 | 74 |
| 72 // RegisterComponent registers this object as a component updater. | 75 // RegisterComponent registers this object as a component updater. |
| 73 void RegisterComponent(uint32 sequence_of_loaded_crl); | 76 void RegisterComponent(uint32_t sequence_of_loaded_crl); |
| 74 | 77 |
| 75 // DoDeleteFromDisk runs on the FILE thread and removes the CRLSet file from | 78 // DoDeleteFromDisk runs on the FILE thread and removes the CRLSet file from |
| 76 // the disk. | 79 // the disk. |
| 77 void DoDeleteFromDisk(); | 80 void DoDeleteFromDisk(); |
| 78 | 81 |
| 79 component_updater::ComponentUpdateService* cus_; | 82 component_updater::ComponentUpdateService* cus_; |
| 80 | 83 |
| 81 // Path where the CRL file is stored. | 84 // Path where the CRL file is stored. |
| 82 base::FilePath crl_path_; | 85 base::FilePath crl_path_; |
| 83 | 86 |
| 84 // We keep a pointer to the current CRLSet for use on the FILE thread when | 87 // We keep a pointer to the current CRLSet for use on the FILE thread when |
| 85 // applying delta updates. | 88 // applying delta updates. |
| 86 scoped_refptr<net::CRLSet> crl_set_; | 89 scoped_refptr<net::CRLSet> crl_set_; |
| 87 | 90 |
| 88 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); | 91 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ | 94 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ |
| OLD | NEW |