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

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

Issue 1685323002: Implement CUP signing in UpdateClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and remove duplicated code comment. Created 4 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ACTION_UPDATE_CHECK_H_ 5 #ifndef COMPONENTS_UPDATE_CLIENT_ACTION_UPDATE_CHECK_H_
6 #define COMPONENTS_UPDATE_CLIENT_ACTION_UPDATE_CHECK_H_ 6 #define COMPONENTS_UPDATE_CLIENT_ACTION_UPDATE_CHECK_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 ActionUpdateCheck(scoped_ptr<UpdateChecker> update_checker, 30 ActionUpdateCheck(scoped_ptr<UpdateChecker> update_checker,
31 const base::Version& browser_version, 31 const base::Version& browser_version,
32 const std::string& extra_request_parameters); 32 const std::string& extra_request_parameters);
33 33
34 ~ActionUpdateCheck() override; 34 ~ActionUpdateCheck() override;
35 35
36 void Run(UpdateContext* update_context, Callback callback) override; 36 void Run(UpdateContext* update_context, Callback callback) override;
37 37
38 private: 38 private:
39 void UpdateCheckComplete(const GURL& original_url, 39 void UpdateCheckComplete(int error, const UpdateResponse::Results& results);
40 int error,
41 const std::string& error_message,
42 const UpdateResponse::Results& results);
43 40
44 void OnUpdateCheckSucceeded(const UpdateResponse::Results& results); 41 void OnUpdateCheckSucceeded(const UpdateResponse::Results& results);
45 void OnUpdateCheckFailed(int error, const std::string& error_message); 42 void OnUpdateCheckFailed(int error);
46 43
47 scoped_ptr<UpdateChecker> update_checker_; 44 scoped_ptr<UpdateChecker> update_checker_;
48 const base::Version browser_version_; 45 const base::Version browser_version_;
49 const std::string extra_request_parameters_; 46 const std::string extra_request_parameters_;
50 47
51 DISALLOW_COPY_AND_ASSIGN(ActionUpdateCheck); 48 DISALLOW_COPY_AND_ASSIGN(ActionUpdateCheck);
52 }; 49 };
53 50
54 } // namespace update_client 51 } // namespace update_client
55 52
56 #endif // COMPONENTS_UPDATE_CLIENT_ACTION_UPDATE_CHECK_H_ 53 #endif // COMPONENTS_UPDATE_CLIENT_ACTION_UPDATE_CHECK_H_
OLDNEW
« no previous file with comments | « components/component_updater/configurator_impl.cc ('k') | components/update_client/action_update_check.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698