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

Side by Side Diff: components/component_updater/default_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 COMPONENTS_COMPONENT_UPDATER_DEFAULT_COMPONENT_INSTALLER_H_ 5 #ifndef COMPONENTS_COMPONENT_UPDATER_DEFAULT_COMPONENT_INSTALLER_H_
6 #define COMPONENTS_COMPONENT_UPDATER_DEFAULT_COMPONENT_INSTALLER_H_ 6 #define COMPONENTS_COMPONENT_UPDATER_DEFAULT_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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Called only from a thread belonging to a blocking thread pool. 42 // Called only from a thread belonging to a blocking thread pool.
43 // The implementation of this function must be efficient since the function 43 // The implementation of this function must be efficient since the function
44 // can be called when Chrome starts. 44 // can be called when Chrome starts.
45 virtual bool VerifyInstallation(const base::DictionaryValue& manifest, 45 virtual bool VerifyInstallation(const base::DictionaryValue& manifest,
46 const base::FilePath& install_dir) const = 0; 46 const base::FilePath& install_dir) const = 0;
47 47
48 // Returns true if the component can be automatically updated. Called once 48 // Returns true if the component can be automatically updated. Called once
49 // during component registration from the UI thread. 49 // during component registration from the UI thread.
50 virtual bool CanAutoUpdate() const = 0; 50 virtual bool CanAutoUpdate() const = 0;
51 51
52 // Returns true if the network communication related to this component
53 // must be encrypted.
54 virtual bool RequiresNetworkEncryption() const = 0;
55
52 // OnCustomInstall is called during the installation process. Components that 56 // OnCustomInstall is called during the installation process. Components that
53 // require custom installation operations should implement them here. 57 // require custom installation operations should implement them here.
54 // Returns false if a custom operation failed, and true otherwise. 58 // Returns false if a custom operation failed, and true otherwise.
55 // Called only from a thread belonging to a blocking thread pool. 59 // Called only from a thread belonging to a blocking thread pool.
56 virtual bool OnCustomInstall(const base::DictionaryValue& manifest, 60 virtual bool OnCustomInstall(const base::DictionaryValue& manifest,
57 const base::FilePath& install_dir) = 0; 61 const base::FilePath& install_dir) = 0;
58 62
59 // ComponentReady is called in two cases: 63 // ComponentReady is called in two cases:
60 // 1) After an installation is successfully completed. 64 // 1) After an installation is successfully completed.
61 // 2) During component registration if the component is already installed. 65 // 2) During component registration if the component is already installed.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 130 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
127 131
128 base::ThreadChecker thread_checker_; 132 base::ThreadChecker thread_checker_;
129 133
130 DISALLOW_COPY_AND_ASSIGN(DefaultComponentInstaller); 134 DISALLOW_COPY_AND_ASSIGN(DefaultComponentInstaller);
131 }; 135 };
132 136
133 } // namespace component_updater 137 } // namespace component_updater
134 138
135 #endif // COMPONENTS_COMPONENT_UPDATER_DEFAULT_COMPONENT_INSTALLER_H_ 139 #endif // COMPONENTS_COMPONENT_UPDATER_DEFAULT_COMPONENT_INSTALLER_H_
OLDNEW
« no previous file with comments | « components/component_updater/configurator_impl.cc ('k') | components/component_updater/default_component_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698