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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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 IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_OMAHA_SERVICE_PROVIDER_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_OMAHA_SERVICE_PROVIDER_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11
12 // OmahaServiceProvider provides the OmahaService with URLs and other data that
13 // are necessary to send update requests.
14 class OmahaServiceProvider {
15 public:
16 OmahaServiceProvider();
17 virtual ~OmahaServiceProvider();
18
19 // Returns the URL to use for update checks.
20 virtual std::string GetUpdateServerURL() const;
sdefresne 2016/11/08 14:31:50 nit: either return GURL or change comment to say r
21
22 // Returns the unique ID for this application. The returned value may depend
23 // on bundle id, channel, or form factor.
24 virtual std::string GetApplicationID() const;
25
26 // Returns the default brand code for this installation. The returned value
27 // may depend on bundle id, channel, or form factor. Returns the empty string
28 // if this installation is not associated with a brand code.
29 virtual std::string GetBrandCode() const;
30
31 // Returns the salt for computing device IDs.
32 virtual std::string GetDeviceIDSalt() const;
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(OmahaServiceProvider);
36 };
37
38 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_OMAHA_SERVICE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698