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

Side by Side Diff: components/update_client/update_query_params.h

Issue 1281913002: Componentize ComponentUpdaterConfigurator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 4 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_H_ 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_H_
6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_H_ 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "components/version_info/version_info.h"
11 12
12 namespace update_client { 13 namespace update_client {
13 14
14 class UpdateQueryParamsDelegate; 15 class UpdateQueryParamsDelegate;
15 16
16 // Generates a string of URL query parameters to be used when getting 17 // Generates a string of URL query parameters to be used when getting
17 // component and extension updates. These parameters generally remain 18 // component and extension updates. These parameters generally remain
18 // fixed for a particular build. Embedders can use the delegate to 19 // fixed for a particular build. Embedders can use the delegate to
19 // define different implementations. This should be used only in the 20 // define different implementations. This should be used only in the
20 // browser process. 21 // browser process.
(...skipping 23 matching lines...) Expand all
44 45
45 // Returns the value we use for the "nacl_arch" parameter. Note that this may 46 // Returns the value we use for the "nacl_arch" parameter. Note that this may
46 // be different from the "arch" parameter above (e.g. one may be 32-bit and 47 // be different from the "arch" parameter above (e.g. one may be 32-bit and
47 // the other 64-bit). Possible return values include: "x86-32", "x86-64", 48 // the other 64-bit). Possible return values include: "x86-32", "x86-64",
48 // "arm", and "mips32". 49 // "arm", and "mips32".
49 static const char* GetNaclArch(); 50 static const char* GetNaclArch();
50 51
51 // Use this delegate. 52 // Use this delegate.
52 static void SetDelegate(UpdateQueryParamsDelegate* delegate); 53 static void SetDelegate(UpdateQueryParamsDelegate* delegate);
53 54
55 // Returns the value we use for the "updaterchannel=" and "prodchannel="
56 // parameters. Possible return values include: "canary", "dev", "beta", and
57 // "stable".
58 static const char* GetChannelString(version_info::Channel channel);
sdefresne 2015/08/13 12:20:00 version_info::Channel is a "enum class" and thus c
droger 2015/08/13 13:16:02 Done, using version_info instead, which actually s
droger 2015/08/13 13:17:46 Sorry this was meant as a reply to another comment
59
54 private: 60 private:
55 DISALLOW_IMPLICIT_CONSTRUCTORS(UpdateQueryParams); 61 DISALLOW_IMPLICIT_CONSTRUCTORS(UpdateQueryParams);
56 }; 62 };
57 63
58 } // namespace update_client 64 } // namespace update_client
59 65
60 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_H_ 66 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698