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

Side by Side Diff: chrome/browser/component_updater/pnacl/pnacl_component_installer.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ 6 #define CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 // Component installer responsible for Portable Native Client files. 37 // Component installer responsible for Portable Native Client files.
38 // Files can be installed to a shared location, or be installed to 38 // Files can be installed to a shared location, or be installed to
39 // a per-user location. 39 // a per-user location.
40 class PnaclComponentInstaller : public update_client::ComponentInstaller { 40 class PnaclComponentInstaller : public update_client::ComponentInstaller {
41 public: 41 public:
42 PnaclComponentInstaller(); 42 PnaclComponentInstaller();
43 43
44 // ComponentInstaller implementation: 44 // ComponentInstaller implementation:
45 void OnUpdateError(int error) override; 45 void OnUpdateError(int error) override;
46
47 bool Install(const base::DictionaryValue& manifest, 46 bool Install(const base::DictionaryValue& manifest,
48 const base::FilePath& unpack_path) override; 47 const base::FilePath& unpack_path) override;
49
50 bool GetInstalledFile(const std::string& file, 48 bool GetInstalledFile(const std::string& file,
51 base::FilePath* installed_file) override; 49 base::FilePath* installed_file) override;
50 bool Uninstall() override;
52 51
53 // Register a PNaCl component for the first time. 52 // Register a PNaCl component for the first time.
54 void RegisterPnaclComponent(ComponentUpdateService* cus); 53 void RegisterPnaclComponent(ComponentUpdateService* cus);
55 54
56 update_client::CrxComponent GetCrxComponent(); 55 update_client::CrxComponent GetCrxComponent();
57 56
58 // Determine the base directory for storing each version of PNaCl. 57 // Determine the base directory for storing each version of PNaCl.
59 base::FilePath GetPnaclBaseDirectory(); 58 base::FilePath GetPnaclBaseDirectory();
60 59
61 base::Version current_version() const { return current_version_; } 60 base::Version current_version() const { return current_version_; }
(...skipping 16 matching lines...) Expand all
78 base::Version current_version_; 77 base::Version current_version_;
79 std::string current_fingerprint_; 78 std::string current_fingerprint_;
80 ComponentUpdateService* cus_; 79 ComponentUpdateService* cus_;
81 80
82 DISALLOW_COPY_AND_ASSIGN(PnaclComponentInstaller); 81 DISALLOW_COPY_AND_ASSIGN(PnaclComponentInstaller);
83 }; 82 };
84 83
85 } // namespace component_updater 84 } // namespace component_updater
86 85
87 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_ 86 #endif // CHROME_BROWSER_COMPONENT_UPDATER_PNACL_PNACL_COMPONENT_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698