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; | |
38 | 36 |
39 private: | 37 private: |
40 friend class base::RefCountedThreadSafe<CRLSetFetcher>; | 38 friend class base::RefCountedThreadSafe<CRLSetFetcher>; |
41 | 39 |
42 virtual ~CRLSetFetcher(); | 40 virtual ~CRLSetFetcher(); |
43 | 41 |
44 // GetCRLSetbase::FilePath gets the path of the CRL set file in the user data | 42 // GetCRLSetbase::FilePath gets the path of the CRL set file in the user data |
45 // dir. | 43 // dir. |
46 bool GetCRLSetFilePath(base::FilePath* path) const; | 44 bool GetCRLSetFilePath(base::FilePath* path) const; |
47 | 45 |
(...skipping 17 matching lines...) Expand all Loading... |
65 ComponentUpdateService* cus_; | 63 ComponentUpdateService* cus_; |
66 | 64 |
67 // We keep a pointer to the current CRLSet for use on the FILE thread when | 65 // We keep a pointer to the current CRLSet for use on the FILE thread when |
68 // applying delta updates. | 66 // applying delta updates. |
69 scoped_refptr<net::CRLSet> crl_set_; | 67 scoped_refptr<net::CRLSet> crl_set_; |
70 | 68 |
71 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); | 69 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); |
72 }; | 70 }; |
73 | 71 |
74 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ | 72 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ |
OLD | NEW |