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

Side by Side Diff: tools/OmahaCompatibility/common/config.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « tools/OmahaCompatibility/build.scons ('k') | tools/OmahaCompatibility/common/config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2008-2009 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 // ========================================================================
15
16 #ifndef OMAHA_TOOLS_SRC_OMAHACOMPATIBILITY_COMMON_CONFIG_H_
17 #define OMAHA_TOOLS_SRC_OMAHACOMPATIBILITY_COMMON_CONFIG_H_
18
19 #include <windows.h>
20 #include <atlstr.h>
21 #include <vector>
22
23 namespace omaha {
24
25 // This struct is used to hold the responses to give to a particular
26 // application. It holds only the very basic information that is needed
27 // to accomplish this. The real ascii protocol buffer used by the server
28 // contains a lot more fields.
29 struct ConfigResponse {
30 ConfigResponse(GUID g, const CString& v, const CString& u,
31 const CString& h, int s, bool b)
32 : guid(g),
33 version(v),
34 url(u),
35 hash(h),
36 size(s),
37 needs_admin(b) {}
38
39 // The information to match the request against.
40 ConfigResponse() {}
41 CString app_name;
42 GUID guid;
43 CString version;
44 CString language;
45
46 // Response values.
47 CString local_file_name;
48 CString url;
49 CString hash;
50 int size;
51 bool needs_admin;
52 };
53
54 typedef std::vector<ConfigResponse> ConfigResponses;
55
56
57 // Reads a config file that contains the specification
58 // of the update responses of the server.
59 // For an example of this file see example_config.txt.
60 HRESULT ReadConfigFile(const CString& file_name,
61 const CString& download_url_prefix,
62 ConfigResponses* config_response);
63
64 } // namespace omaha
65
66 #endif // OMAHA_TOOLS_SRC_OMAHACOMPATIBILITY_COMMON_CONFIG_H_
OLDNEW
« no previous file with comments | « tools/OmahaCompatibility/build.scons ('k') | tools/OmahaCompatibility/common/config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698