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

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

Issue 2500933002: [ios] Adds an Initialize() method to OmahaServiceProvider. (Closed)
Patch Set: Rebased. 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
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/omaha/omaha_service_provider.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_OMAHA_SERVICE_PROVIDER_H_ 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_OMAHA_SERVICE_PROVIDER_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_OMAHA_SERVICE_PROVIDER_H_ 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_OMAHA_SERVICE_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 class OmahaXmlWriter; 13 class OmahaXmlWriter;
14 14
15 // OmahaServiceProvider provides the OmahaService with URLs and other data that 15 // OmahaServiceProvider provides the OmahaService with URLs and other data that
16 // are necessary to send update requests. 16 // are necessary to send update requests.
17 class OmahaServiceProvider { 17 class OmahaServiceProvider {
18 public: 18 public:
19 OmahaServiceProvider(); 19 OmahaServiceProvider();
20 virtual ~OmahaServiceProvider(); 20 virtual ~OmahaServiceProvider();
21 21
22 // Initializes the provider. This method will be called on the UI thread.
23 virtual void Initialize();
24
22 // Returns the URL to use for update checks. 25 // Returns the URL to use for update checks.
23 virtual GURL GetUpdateServerURL() const; 26 virtual GURL GetUpdateServerURL() const;
24 27
25 // Returns the unique ID for this application. The returned value may depend 28 // Returns the unique ID for this application. The returned value may depend
26 // on bundle id, channel, or form factor. 29 // on bundle id, channel, or form factor.
27 virtual std::string GetApplicationID() const; 30 virtual std::string GetApplicationID() const;
28 31
29 // Returns the default brand code for this installation. The returned value 32 // Returns the default brand code for this installation. The returned value
30 // may depend on bundle id, channel, or form factor. Returns the empty string 33 // may depend on bundle id, channel, or form factor. Returns the empty string
31 // if this installation is not associated with a brand code. 34 // if this installation is not associated with a brand code.
32 virtual std::string GetBrandCode() const; 35 virtual std::string GetBrandCode() const;
33 36
34 // Allows the embedder to append embedder-specific attributes to the XML 37 // Allows the embedder to append embedder-specific attributes to the XML
35 // request. This method may be called multiple times per request. Embedders 38 // request. This method may be called multiple times per request. Embedders
36 // should only add attributes that are relevant for the given element |tag|. 39 // should only add attributes that are relevant for the given element |tag|.
37 virtual void AppendExtraAttributes(const std::string& tag, 40 virtual void AppendExtraAttributes(const std::string& tag,
38 OmahaXmlWriter* writer) const; 41 OmahaXmlWriter* writer) const;
39 42
40 private: 43 private:
41 DISALLOW_COPY_AND_ASSIGN(OmahaServiceProvider); 44 DISALLOW_COPY_AND_ASSIGN(OmahaServiceProvider);
42 }; 45 };
43 46
44 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_OMAHA_SERVICE_PROVIDER_H_ 47 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_OMAHA_SERVICE_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/omaha/omaha_service_provider.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698