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

Side by Side Diff: components/component_updater/configurator_impl.h

Issue 1362043005: Add extensions code to use common updater in components/update_client/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use ConfiguratorImpl, change TestExtensionService, etc Created 5 years, 2 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
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // The source of contexts for all the url requests. 70 // The source of contexts for all the url requests.
71 net::URLRequestContextGetter* RequestContext() const; 71 net::URLRequestContextGetter* RequestContext() const;
72 72
73 // True means that this client can handle delta updates. 73 // True means that this client can handle delta updates.
74 bool DeltasEnabled() const; 74 bool DeltasEnabled() const;
75 75
76 // True means that the background downloader can be used for downloading 76 // True means that the background downloader can be used for downloading
77 // non on-demand components. 77 // non on-demand components.
78 bool UseBackgroundDownloader() const; 78 bool UseBackgroundDownloader() const;
79 79
80 // Setting this to true means that we'll only use secure transport (eg https)
81 // for update/ping urls. This is already true by default everywhere but older
82 // versions of Windows XP.
83 void set_require_secure_transport(bool require_secure_transport);
Sorin Jianu 2015/10/14 20:37:09 Maybe we just need a setter: set_enable_alt_source
asargent_no_longer_on_chrome 2015/10/15 20:16:02 Done.
84
80 private: 85 private:
81 net::URLRequestContextGetter* url_request_getter_; 86 net::URLRequestContextGetter* url_request_getter_;
82 std::string extra_info_; 87 std::string extra_info_;
83 GURL url_source_override_; 88 GURL url_source_override_;
84 bool fast_update_; 89 bool fast_update_;
85 bool pings_enabled_; 90 bool pings_enabled_;
86 bool deltas_enabled_; 91 bool deltas_enabled_;
87 bool background_downloads_enabled_; 92 bool background_downloads_enabled_;
88 bool fallback_to_alt_source_url_enabled_; 93 bool fallback_to_alt_source_url_enabled_;
89 94
90 DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl); 95 DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl);
91 }; 96 };
92 97
93 } // namespace component_updater 98 } // namespace component_updater
94 99
95 #endif // COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ 100 #endif // COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698