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

Side by Side Diff: chrome/browser/extensions/updater/chrome_update_client_config.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: merged latest origin/master 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/memory/ref_counted.h"
12 #include "components/component_updater/configurator_impl.h"
13 #include "extensions/browser/updater/update_client_config.h"
14
15 namespace content {
16 class BrowserContext;
17 }
18
19 namespace extensions {
20
21 class ChromeUpdateClientConfig : public UpdateClientConfig {
22 public:
23 explicit ChromeUpdateClientConfig(content::BrowserContext* context);
24
25 int InitialDelay() const override;
26 int NextCheckDelay() const override;
27 int StepDelay() const override;
28 int OnDemandDelay() const override;
29 int UpdateDelay() const override;
30 std::vector<GURL> UpdateUrl() const override;
31 std::vector<GURL> PingUrl() const override;
32 base::Version GetBrowserVersion() const override;
33 std::string GetChannel() const override;
34 std::string GetLang() const override;
35 std::string GetOSLongName() const override;
36 std::string ExtraRequestParams() const override;
37 net::URLRequestContextGetter* RequestContext() const override;
38 scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher()
39 const override;
40 bool DeltasEnabled() const override;
41 bool UseBackgroundDownloader() const override;
42
43 protected:
44 friend class base::RefCountedThreadSafe<ChromeUpdateClientConfig>;
45 ~ChromeUpdateClientConfig() override;
46
47 private:
48 component_updater::ConfiguratorImpl impl_;
49
50 DISALLOW_COPY_AND_ASSIGN(ChromeUpdateClientConfig);
51 };
52
53 } // namespace extensions
54
55 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/test_extension_system.cc ('k') | chrome/browser/extensions/updater/chrome_update_client_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698