Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: chrome/browser/net/crl_set_fetcher.h

Issue 879993005: Add support for uninstalling components and use it in SupervisedUserWhitelistInstaller. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: fix Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 23 matching lines...) Expand all
34 34
35 // DeleteFromDisk asynchronously delete the CRLSet file. 35 // DeleteFromDisk asynchronously delete the CRLSet file.
36 void DeleteFromDisk(const base::FilePath& path); 36 void DeleteFromDisk(const base::FilePath& path);
37 37
38 // ComponentInstaller interface 38 // ComponentInstaller interface
39 void OnUpdateError(int error) override; 39 void OnUpdateError(int error) override;
40 bool Install(const base::DictionaryValue& manifest, 40 bool Install(const base::DictionaryValue& manifest,
41 const base::FilePath& unpack_path) override; 41 const base::FilePath& unpack_path) override;
42 bool GetInstalledFile(const std::string& file, 42 bool GetInstalledFile(const std::string& file,
43 base::FilePath* installed_file) override; 43 base::FilePath* installed_file) override;
44 bool Uninstall() override;
44 45
45 private: 46 private:
46 friend class base::RefCountedThreadSafe<CRLSetFetcher>; 47 friend class base::RefCountedThreadSafe<CRLSetFetcher>;
47 48
48 ~CRLSetFetcher() override; 49 ~CRLSetFetcher() override;
49 50
50 // GetCRLSetbase::FilePath gets the path of the CRL set file in the user data 51 // GetCRLSetbase::FilePath gets the path of the CRL set file in the user data
51 // dir. 52 // dir.
52 base::FilePath GetCRLSetFilePath() const; 53 base::FilePath GetCRLSetFilePath() const;
53 54
(...skipping 27 matching lines...) Expand all
81 base::FilePath crl_path_; 82 base::FilePath crl_path_;
82 83
83 // We keep a pointer to the current CRLSet for use on the FILE thread when 84 // We keep a pointer to the current CRLSet for use on the FILE thread when
84 // applying delta updates. 85 // applying delta updates.
85 scoped_refptr<net::CRLSet> crl_set_; 86 scoped_refptr<net::CRLSet> crl_set_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher); 88 DISALLOW_COPY_AND_ASSIGN(CRLSetFetcher);
88 }; 89 };
89 90
90 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_ 91 #endif // CHROME_BROWSER_NET_CRL_SET_FETCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698