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" |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 // DeleteFromDisk asynchronously delete the CRLSet file. | 35 // DeleteFromDisk asynchronously delete the CRLSet file. |
36 void DeleteFromDisk(const base::FilePath& path); | 36 void DeleteFromDisk(const base::FilePath& path); |
37 | 37 |
38 // ComponentInstaller interface | 38 // ComponentInstaller interface |
39 void OnUpdateError(int error) override; | 39 void OnUpdateError(int error) override; |
40 bool Install(const base::DictionaryValue& manifest, | 40 bool Install(const base::DictionaryValue& manifest, |
41 const base::FilePath& unpack_path) override; | 41 const base::FilePath& unpack_path) override; |
42 bool GetInstalledFile(const std::string& file, | 42 bool GetInstalledFile(const std::string& file, |
43 base::FilePath* installed_file) override; | 43 base::FilePath* installed_file) override; |
| 44 bool Uninstall() override; |
44 | 45 |
45 private: | 46 private: |
46 friend class base::RefCountedThreadSafe<CRLSetFetcher>; | 47 friend class base::RefCountedThreadSafe<CRLSetFetcher>; |
47 | 48 |
48 ~CRLSetFetcher() override; | 49 ~CRLSetFetcher() override; |
49 | 50 |
50 // GetCRLSetbase::FilePath gets the path of the CRL set file in the user data | 51 // GetCRLSetbase::FilePath gets the path of the CRL set file in the user data |
51 // dir. | 52 // dir. |
52 base::FilePath GetCRLSetFilePath() const; | 53 base::FilePath GetCRLSetFilePath() const; |
53 | 54 |
(...skipping 27 matching lines...) Expand all Loading... |
81 base::FilePath crl_path_; | 82 base::FilePath crl_path_; |
82 | 83 |
83 // 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 |
84 // applying delta updates. | 85 // applying delta updates. |
85 scoped_refptr<net::CRLSet> crl_set_; | 86 scoped_refptr<net::CRLSet> crl_set_; |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); | 88 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); |
88 }; | 89 }; |
89 | 90 |
90 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ | 91 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ |
OLD | NEW |