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

Side by Side Diff: components/component_updater/configurator_impl.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CONFIGURATOR_IMPL_H_ 5 #ifndef COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_
6 #define COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ 6 #define COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace base { 14 namespace base {
15 class CommandLine; 15 class CommandLine;
16 class Version; 16 class Version;
17 } 17 }
18 18
19 namespace net { 19 namespace net {
20 class URLRequestContextGetter; 20 class URLRequestContextGetter;
21 } 21 }
22 22
23 namespace component_updater { 23 namespace component_updater {
24 24
25 // Helper class for the implementations of update_client::Configurator. 25 // Helper class for the implementations of update_client::Configurator.
26 // Can be used both on iOS and other platforms. 26 // Can be used both on iOS and other platforms.
27 class ConfiguratorImpl { 27 class ConfiguratorImpl {
28 public: 28 public:
29 ConfiguratorImpl(const base::CommandLine* cmdline, 29 ConfiguratorImpl(const base::CommandLine* cmdline,
30 net::URLRequestContextGetter* url_request_getter); 30 net::URLRequestContextGetter* url_request_getter,
31 bool require_encryption);
31 32
32 ~ConfiguratorImpl(); 33 ~ConfiguratorImpl();
33 34
34 // Delay in seconds from calling Start() to the first update check. 35 // Delay in seconds from calling Start() to the first update check.
35 int InitialDelay() const; 36 int InitialDelay() const;
36 37
37 // Delay in seconds to every subsequent update check. 0 means don't check. 38 // Delay in seconds to every subsequent update check. 0 means don't check.
38 int NextCheckDelay() const; 39 int NextCheckDelay() const;
39 40
40 // Delay in seconds from each task step. Used to smooth out CPU/IO usage. 41 // Delay in seconds from each task step. Used to smooth out CPU/IO usage.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 bool UseCupSigning() const; 86 bool UseCupSigning() const;
86 87
87 private: 88 private:
88 net::URLRequestContextGetter* url_request_getter_; 89 net::URLRequestContextGetter* url_request_getter_;
89 std::string extra_info_; 90 std::string extra_info_;
90 GURL url_source_override_; 91 GURL url_source_override_;
91 bool fast_update_; 92 bool fast_update_;
92 bool pings_enabled_; 93 bool pings_enabled_;
93 bool deltas_enabled_; 94 bool deltas_enabled_;
94 bool background_downloads_enabled_; 95 bool background_downloads_enabled_;
96 bool require_encryption_;
95 97
96 DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl); 98 DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl);
97 }; 99 };
98 100
99 } // namespace component_updater 101 } // namespace component_updater
100 102
101 #endif // COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ 103 #endif // COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_
OLDNEW
« no previous file with comments | « components/component_updater/component_updater_url_constants.cc ('k') | components/component_updater/configurator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698