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

Unified Diff: ios/public/provider/chrome/browser/omaha/omaha_service_provider.h

Issue 2482173002: [ios] Adds OmahaServiceProvider. (Closed)
Patch Set: Add provider. Created 4 years, 1 month 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: ios/public/provider/chrome/browser/omaha/omaha_service_provider.h
diff --git a/ios/public/provider/chrome/browser/omaha/omaha_service_provider.h b/ios/public/provider/chrome/browser/omaha/omaha_service_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..584f6abb22949989c54979b1ec28bf8a18dabcec
--- /dev/null
+++ b/ios/public/provider/chrome/browser/omaha/omaha_service_provider.h
@@ -0,0 +1,38 @@
+// Copyright 2016 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 IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_OMAHA_SERVICE_PROVIDER_H_
+#define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_OMAHA_SERVICE_PROVIDER_H_
+
+#include <string>
+
+#include "base/macros.h"
+
+// OmahaServiceProvider provides the OmahaService with URLs and other data that
+// are necessary to send update requests.
+class OmahaServiceProvider {
+ public:
+ OmahaServiceProvider();
+ virtual ~OmahaServiceProvider();
+
+ // Returns the URL to use for update checks.
+ virtual std::string GetUpdateServerURL() const;
sdefresne 2016/11/08 14:31:50 nit: either return GURL or change comment to say r
+
+ // Returns the unique ID for this application. The returned value may depend
+ // on bundle id, channel, or form factor.
+ virtual std::string GetApplicationID() const;
+
+ // Returns the default brand code for this installation. The returned value
+ // may depend on bundle id, channel, or form factor. Returns the empty string
+ // if this installation is not associated with a brand code.
+ virtual std::string GetBrandCode() const;
+
+ // Returns the salt for computing device IDs.
+ virtual std::string GetDeviceIDSalt() const;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(OmahaServiceProvider);
+};
+
+#endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_OMAHA_SERVICE_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698