| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 void StartInitialLoad(component_updater::ComponentUpdateService* cus); | 28 void StartInitialLoad(component_updater::ComponentUpdateService* cus); |
| 29 | 29 |
| 30 // DeleteFromDisk asynchronously delete the CRLSet file. | 30 // DeleteFromDisk asynchronously delete the CRLSet file. |
| 31 void DeleteFromDisk(); | 31 void DeleteFromDisk(); |
| 32 | 32 |
| 33 // ComponentInstaller interface | 33 // ComponentInstaller interface |
| 34 virtual void OnUpdateError(int error) OVERRIDE; | 34 virtual void OnUpdateError(int error) OVERRIDE; |
| 35 virtual bool Install(const base::DictionaryValue& manifest, | 35 virtual bool Install(const base::DictionaryValue& manifest, |
| 36 const base::FilePath& unpack_path) OVERRIDE; | 36 const base::FilePath& unpack_path) OVERRIDE; |
| 37 virtual base::FilePath GetBackupPath() const OVERRIDE; |
| 38 virtual void InstallExternally() OVERRIDE; |
| 37 virtual bool GetInstalledFile(const std::string& file, | 39 virtual bool GetInstalledFile(const std::string& file, |
| 38 base::FilePath* installed_file) OVERRIDE; | 40 base::FilePath* installed_file) OVERRIDE; |
| 39 | 41 |
| 40 private: | 42 private: |
| 41 friend class base::RefCountedThreadSafe<CRLSetFetcher>; | 43 friend class base::RefCountedThreadSafe<CRLSetFetcher>; |
| 42 | 44 |
| 43 virtual ~CRLSetFetcher(); | 45 virtual ~CRLSetFetcher(); |
| 44 | 46 |
| 45 // 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 |
| 46 // dir. | 48 // dir. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 70 component_updater::ComponentUpdateService* cus_; | 72 component_updater::ComponentUpdateService* cus_; |
| 71 | 73 |
| 72 // We keep a pointer to the current CRLSet for use on the FILE thread when | 74 // We keep a pointer to the current CRLSet for use on the FILE thread when |
| 73 // applying delta updates. | 75 // applying delta updates. |
| 74 scoped_refptr<net::CRLSet> crl_set_; | 76 scoped_refptr<net::CRLSet> crl_set_; |
| 75 | 77 |
| 76 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); | 78 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); |
| 77 }; | 79 }; |
| 78 | 80 |
| 79 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ | 81 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ |
| OLD | NEW |