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 15 matching lines...) Expand all Loading... |
26 public: | 26 public: |
27 CRLSetFetcher(); | 27 CRLSetFetcher(); |
28 | 28 |
29 void StartInitialLoad(component_updater::ComponentUpdateService* cus, | 29 void StartInitialLoad(component_updater::ComponentUpdateService* cus, |
30 const base::FilePath& path); | 30 const base::FilePath& path); |
31 | 31 |
32 // DeleteFromDisk asynchronously delete the CRLSet file. | 32 // DeleteFromDisk asynchronously delete the CRLSet file. |
33 void DeleteFromDisk(const base::FilePath& path); | 33 void DeleteFromDisk(const base::FilePath& path); |
34 | 34 |
35 // ComponentInstaller interface | 35 // ComponentInstaller interface |
36 virtual void OnUpdateError(int error) OVERRIDE; | 36 virtual void OnUpdateError(int error) override; |
37 virtual bool Install(const base::DictionaryValue& manifest, | 37 virtual bool Install(const base::DictionaryValue& manifest, |
38 const base::FilePath& unpack_path) OVERRIDE; | 38 const base::FilePath& unpack_path) override; |
39 virtual bool GetInstalledFile(const std::string& file, | 39 virtual bool GetInstalledFile(const std::string& file, |
40 base::FilePath* installed_file) OVERRIDE; | 40 base::FilePath* installed_file) override; |
41 | 41 |
42 private: | 42 private: |
43 friend class base::RefCountedThreadSafe<CRLSetFetcher>; | 43 friend class base::RefCountedThreadSafe<CRLSetFetcher>; |
44 | 44 |
45 virtual ~CRLSetFetcher(); | 45 virtual ~CRLSetFetcher(); |
46 | 46 |
47 // GetCRLSetbase::FilePath gets the path of the CRL set file in the user data | 47 // GetCRLSetbase::FilePath gets the path of the CRL set file in the user data |
48 // dir. | 48 // dir. |
49 base::FilePath GetCRLSetFilePath() const; | 49 base::FilePath GetCRLSetFilePath() const; |
50 | 50 |
(...skipping 27 matching lines...) Expand all Loading... |
78 base::FilePath crl_path_; | 78 base::FilePath crl_path_; |
79 | 79 |
80 // We keep a pointer to the current CRLSet for use on the FILE thread when | 80 // We keep a pointer to the current CRLSet for use on the FILE thread when |
81 // applying delta updates. | 81 // applying delta updates. |
82 scoped_refptr<net::CRLSet> crl_set_; | 82 scoped_refptr<net::CRLSet> crl_set_; |
83 | 83 |
84 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); | 84 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); |
85 }; | 85 }; |
86 | 86 |
87 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ | 87 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ |
OLD | NEW |