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

Side by Side Diff: chrome/browser/component_updater/ssl_error_assistant_component_installer.h

Issue 2581903002: Add SSL error assistant component to dynamically update captive portal list (Closed)
Patch Set: nparker comments Created 3 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_SSL_ERROR_ASSISTANT_COMPONENT_INSTALLER _H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_SSL_ERROR_ASSISTANT_COMPONENT_INSTALLER _H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/macros.h"
12 #include "base/values.h"
13 #include "components/component_updater/default_component_installer.h"
14
15 namespace base {
16 class FilePath;
17 } // namespace base
18
19 namespace component_updater {
20 class SSLErrorAssistantComponentInstallerTraits
21 : public ComponentInstallerTraits {
22 public:
23 SSLErrorAssistantComponentInstallerTraits() {}
24 ~SSLErrorAssistantComponentInstallerTraits() override {}
25
26 private:
27 // ComponentInstallerTraits methods:
28 bool SupportsGroupPolicyEnabledComponentUpdates() const override;
29 bool RequiresNetworkEncryption() const override;
30 update_client::CrxInstaller::Result OnCustomInstall(
31 const base::DictionaryValue& manifest,
32 const base::FilePath& install_dir) override;
33 bool VerifyInstallation(const base::DictionaryValue& manifest,
34 const base::FilePath& install_dir) const override;
35 void ComponentReady(const base::Version& version,
36 const base::FilePath& install_dir,
37 std::unique_ptr<base::DictionaryValue> manifest) override;
38 base::FilePath GetRelativeInstallDir() const override;
39 void GetHash(std::vector<uint8_t>* hash) const override;
40 std::string GetName() const override;
41 update_client::InstallerAttributes GetInstallerAttributes() const override;
42 std::vector<std::string> GetMimeTypes() const override;
43
44 static base::FilePath GetInstalledPath(const base::FilePath& base);
45
46 DISALLOW_COPY_AND_ASSIGN(SSLErrorAssistantComponentInstallerTraits);
47 };
48
49 void RegisterSSLErrorAssistantComponent(ComponentUpdateService* cus,
50 const base::FilePath& user_data_dir);
51
52 } // namespace component_updater
53
54 #endif // CHROME_BROWSER_COMPONENT_UPDATER_SSL_ERROR_ASSISTANT_COMPONENT_INSTAL LER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/component_updater/ssl_error_assistant_component_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698