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

Side by Side Diff: src/platform/update_engine/update_check_action.h

Issue 1881001: AU: Many minor cleanup changes (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: fixes for review Created 10 years, 7 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 (c) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium OS 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 CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__ 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__
6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__ 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__
7 7
8 #include <sys/stat.h> 8 #include <sys/stat.h>
9 #include <sys/types.h> 9 #include <sys/types.h>
10 #include <fcntl.h> 10 #include <fcntl.h>
(...skipping 21 matching lines...) Expand all
32 UpdateCheckParams() 32 UpdateCheckParams()
33 : os_platform(kOsPlatform), os_version(kOsVersion), app_id(kAppId) {} 33 : os_platform(kOsPlatform), os_version(kOsVersion), app_id(kAppId) {}
34 UpdateCheckParams(const std::string& in_machine_id, 34 UpdateCheckParams(const std::string& in_machine_id,
35 const std::string& in_user_id, 35 const std::string& in_user_id,
36 const std::string& in_os_platform, 36 const std::string& in_os_platform,
37 const std::string& in_os_version, 37 const std::string& in_os_version,
38 const std::string& in_os_sp, 38 const std::string& in_os_sp,
39 const std::string& in_app_id, 39 const std::string& in_app_id,
40 const std::string& in_app_version, 40 const std::string& in_app_version,
41 const std::string& in_app_lang, 41 const std::string& in_app_lang,
42 const std::string& in_app_track) 42 const std::string& in_app_track,
43 const std::string& in_update_url)
43 : machine_id(in_machine_id), 44 : machine_id(in_machine_id),
44 user_id(in_user_id), 45 user_id(in_user_id),
45 os_platform(in_os_platform), 46 os_platform(in_os_platform),
46 os_version(in_os_version), 47 os_version(in_os_version),
47 os_sp(in_os_sp), 48 os_sp(in_os_sp),
48 app_id(in_app_id), 49 app_id(in_app_id),
49 app_version(in_app_version), 50 app_version(in_app_version),
50 app_lang(in_app_lang), 51 app_lang(in_app_lang),
51 app_track(in_app_track) {} 52 app_track(in_app_track),
53 update_url(in_update_url) {}
52 54
53 std::string machine_id; 55 std::string machine_id;
54 std::string user_id; 56 std::string user_id;
55 std::string os_platform; 57 std::string os_platform;
56 std::string os_version; 58 std::string os_version;
57 std::string os_sp; 59 std::string os_sp;
58 std::string app_id; 60 std::string app_id;
59 std::string app_version; 61 std::string app_version;
60 std::string app_lang; 62 std::string app_lang;
61 std::string app_track; 63 std::string app_track;
64
65 std::string update_url;
62 66
63 // Suggested defaults 67 // Suggested defaults
64 static const char* const kAppId; 68 static const char* const kAppId;
65 static const char* const kOsPlatform; 69 static const char* const kOsPlatform;
66 static const char* const kOsVersion; 70 static const char* const kOsVersion;
71 static const char* const kUpdateUrl;
67 }; 72 };
68 73
69 // This struct encapsulates the data Omaha returns for the update check. 74 // This struct encapsulates the data Omaha returns for the update check.
70 // These strings in this struct are not XML escaped. 75 // These strings in this struct are not XML escaped.
71 struct UpdateCheckResponse { 76 struct UpdateCheckResponse {
72 UpdateCheckResponse() 77 UpdateCheckResponse()
73 : update_exists(false), size(0), needs_admin(false), prompt(false) {} 78 : update_exists(false), size(0), needs_admin(false), prompt(false) {}
74 // True iff there is an update to be downloaded. 79 // True iff there is an update to be downloaded.
75 bool update_exists; 80 bool update_exists;
76 81
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 136
132 // Stores the response from the omaha server 137 // Stores the response from the omaha server
133 std::vector<char> response_buffer_; 138 std::vector<char> response_buffer_;
134 139
135 DISALLOW_COPY_AND_ASSIGN(UpdateCheckAction); 140 DISALLOW_COPY_AND_ASSIGN(UpdateCheckAction);
136 }; 141 };
137 142
138 } // namespace chromeos_update_engine 143 } // namespace chromeos_update_engine
139 144
140 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__ 145 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_CHECK_ACTION_H__
OLDNEW
« no previous file with comments | « src/platform/update_engine/update_attempter.cc ('k') | src/platform/update_engine/update_check_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698