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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/updater/chrome_update_client_config.h
diff --git a/chrome/browser/extensions/updater/chrome_update_client_config.h b/chrome/browser/extensions/updater/chrome_update_client_config.h
new file mode 100644
index 0000000000000000000000000000000000000000..1e6cab60b2b7b313c7a86bc31c20ad5c668ac2e9
--- /dev/null
+++ b/chrome/browser/extensions/updater/chrome_update_client_config.h
@@ -0,0 +1,55 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_
+#define CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_
+
+#include <string>
+#include <vector>
+
+#include "base/memory/ref_counted.h"
+#include "components/component_updater/configurator_impl.h"
+#include "extensions/browser/updater/update_client_config.h"
+
+namespace content {
+class BrowserContext;
+}
+
+namespace extensions {
+
+class ChromeUpdateClientConfig : public UpdateClientConfig {
+ public:
+ explicit ChromeUpdateClientConfig(content::BrowserContext* context);
+
+ int InitialDelay() const override;
+ int NextCheckDelay() const override;
+ int StepDelay() const override;
+ int OnDemandDelay() const override;
+ int UpdateDelay() const override;
+ std::vector<GURL> UpdateUrl() const override;
+ std::vector<GURL> PingUrl() const override;
+ base::Version GetBrowserVersion() const override;
+ std::string GetChannel() const override;
+ std::string GetLang() const override;
+ std::string GetOSLongName() const override;
+ std::string ExtraRequestParams() const override;
+ net::URLRequestContextGetter* RequestContext() const override;
+ scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher()
+ const override;
+ bool DeltasEnabled() const override;
+ bool UseBackgroundDownloader() const override;
+
+ protected:
+ friend class base::RefCountedThreadSafe<ChromeUpdateClientConfig>;
+ ~ChromeUpdateClientConfig() override;
+
+ private:
+ component_updater::ConfiguratorImpl impl_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeUpdateClientConfig);
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_
« 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