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

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

Issue 1740333002: Allow fallback from https to http for component update checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CLD_COMPONENT_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_ 6 #define CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 24 matching lines...) Expand all
35 FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, GetBaseDirectory); 35 FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, GetBaseDirectory);
36 FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, GetHash); 36 FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, GetHash);
37 FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, GetInstalledPath); 37 FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, GetInstalledPath);
38 FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, GetName); 38 FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, GetName);
39 FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, OnCustomInstall); 39 FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, OnCustomInstall);
40 FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, SetLatestCldDataFile); 40 FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, SetLatestCldDataFile);
41 FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, VerifyInstallation); 41 FRIEND_TEST_ALL_PREFIXES(CldComponentInstallerTest, VerifyInstallation);
42 42
43 // The following methods override ComponentInstallerTraits. 43 // The following methods override ComponentInstallerTraits.
44 bool CanAutoUpdate() const override; 44 bool CanAutoUpdate() const override;
45 bool RequiresNetworkEncryption() const override;
45 bool OnCustomInstall(const base::DictionaryValue& manifest, 46 bool OnCustomInstall(const base::DictionaryValue& manifest,
46 const base::FilePath& install_dir) override; 47 const base::FilePath& install_dir) override;
47 bool VerifyInstallation(const base::DictionaryValue& manifest, 48 bool VerifyInstallation(const base::DictionaryValue& manifest,
48 const base::FilePath& install_dir) const override; 49 const base::FilePath& install_dir) const override;
49 void ComponentReady(const base::Version& version, 50 void ComponentReady(const base::Version& version,
50 const base::FilePath& path, 51 const base::FilePath& path,
51 scoped_ptr<base::DictionaryValue> manifest) override; 52 scoped_ptr<base::DictionaryValue> manifest) override;
52 base::FilePath GetBaseDirectory() const override; 53 base::FilePath GetBaseDirectory() const override;
53 void GetHash(std::vector<uint8_t>* hash) const override; 54 void GetHash(std::vector<uint8_t>* hash) const override;
54 std::string GetName() const override; 55 std::string GetName() const override;
(...skipping 13 matching lines...) Expand all
68 }; 69 };
69 70
70 // Call once during startup to make the component update service aware of 71 // Call once during startup to make the component update service aware of
71 // the CLD component. This method does nothing if the configured CLD data source 72 // the CLD component. This method does nothing if the configured CLD data source
72 // is not the "Component" data source. 73 // is not the "Component" data source.
73 void RegisterCldComponent(ComponentUpdateService* cus); 74 void RegisterCldComponent(ComponentUpdateService* cus);
74 75
75 } // namespace component_updater 76 } // namespace component_updater
76 77
77 #endif // CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_ 78 #endif // CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698