| 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 base::RefCountedThreadSafe<CRLSetFetcher> { | 26 public base::RefCountedThreadSafe<CRLSetFetcher> { |
| 27 public: | 27 public: |
| 28 CRLSetFetcher(); | 28 CRLSetFetcher(); |
| 29 | 29 |
| 30 void StartInitialLoad(ComponentUpdateService* cus); | 30 void StartInitialLoad(ComponentUpdateService* cus); |
| 31 | 31 |
| 32 // ComponentInstaller interface | 32 // ComponentInstaller interface |
| 33 virtual void OnUpdateError(int error) OVERRIDE; | 33 virtual void OnUpdateError(int error) OVERRIDE; |
| 34 virtual bool Install(const base::DictionaryValue& manifest, | 34 virtual bool Install(const base::DictionaryValue& manifest, |
| 35 const base::FilePath& unpack_path) OVERRIDE; | 35 const base::FilePath& unpack_path) OVERRIDE; |
| 36 virtual bool GetInstalledFile(const std::string& file, |
| 37 base::FilePath* installed_file) OVERRIDE; |
| 36 | 38 |
| 37 private: | 39 private: |
| 38 friend class base::RefCountedThreadSafe<CRLSetFetcher>; | 40 friend class base::RefCountedThreadSafe<CRLSetFetcher>; |
| 39 | 41 |
| 40 virtual ~CRLSetFetcher(); | 42 virtual ~CRLSetFetcher(); |
| 41 | 43 |
| 42 // GetCRLSetbase::FilePath gets the path of the CRL set file in the user data | 44 // GetCRLSetbase::FilePath gets the path of the CRL set file in the user data |
| 43 // dir. | 45 // dir. |
| 44 bool GetCRLSetFilePath(base::FilePath* path) const; | 46 bool GetCRLSetFilePath(base::FilePath* path) const; |
| 45 | 47 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 63 ComponentUpdateService* cus_; | 65 ComponentUpdateService* cus_; |
| 64 | 66 |
| 65 // We keep a pointer to the current CRLSet for use on the FILE thread when | 67 // We keep a pointer to the current CRLSet for use on the FILE thread when |
| 66 // applying delta updates. | 68 // applying delta updates. |
| 67 scoped_refptr<net::CRLSet> crl_set_; | 69 scoped_refptr<net::CRLSet> crl_set_; |
| 68 | 70 |
| 69 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); | 71 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); |
| 70 }; | 72 }; |
| 71 | 73 |
| 72 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ | 74 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ |
| OLD | NEW |