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 13 matching lines...) Expand all Loading... |
24 public base::RefCountedThreadSafe<CRLSetFetcher> { | 24 public base::RefCountedThreadSafe<CRLSetFetcher> { |
25 public: | 25 public: |
26 CRLSetFetcher(); | 26 CRLSetFetcher(); |
27 | 27 |
28 void StartInitialLoad(component_updater::ComponentUpdateService* cus); | 28 void StartInitialLoad(component_updater::ComponentUpdateService* cus); |
29 | 29 |
30 // ComponentInstaller interface | 30 // ComponentInstaller interface |
31 virtual void OnUpdateError(int error) OVERRIDE; | 31 virtual void OnUpdateError(int error) OVERRIDE; |
32 virtual bool Install(const base::DictionaryValue& manifest, | 32 virtual bool Install(const base::DictionaryValue& manifest, |
33 const base::FilePath& unpack_path) OVERRIDE; | 33 const base::FilePath& unpack_path) OVERRIDE; |
| 34 virtual void OnInstallError( |
| 35 const component_updater::InstallerSourceSerializer& serializer) OVERRIDE; |
34 virtual bool GetInstalledFile(const std::string& file, | 36 virtual bool GetInstalledFile(const std::string& file, |
35 base::FilePath* installed_file) OVERRIDE; | 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. |
(...skipping 19 matching lines...) Expand all Loading... |
63 component_updater::ComponentUpdateService* cus_; | 65 component_updater::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 |