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

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

Issue 2700733002: Mechanical refactoring of the parser and ActionUpdateCheck (Closed)
Patch Set: . Created 3 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
« no previous file with comments | « no previous file | components/update_client/action_update_check.cc » ('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 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 <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 21 matching lines...) Expand all
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(int error, 39 void UpdateCheckComplete(int error,
40 const UpdateResponse::Results& results, 40 const UpdateResponse::Results& results,
41 int retry_after_sec); 41 int retry_after_sec);
42
43 void OnUpdateCheckSucceeded(const UpdateResponse::Results& results); 42 void OnUpdateCheckSucceeded(const UpdateResponse::Results& results);
44 void OnUpdateCheckFailed(int error); 43 void OnUpdateCheckFailed(int error);
45 44
45 void HandleUpdateCheckOK(const UpdateResponse::Result& result,
46 CrxUpdateItem* crx);
47 void HandleUpdateCheckNoupdate(const UpdateResponse::Result& result,
48 CrxUpdateItem* crx);
49 void HandleUpdateCheckError(const UpdateResponse::Result& result,
50 CrxUpdateItem* crx);
51
46 std::unique_ptr<UpdateChecker> update_checker_; 52 std::unique_ptr<UpdateChecker> update_checker_;
47 const base::Version browser_version_; 53 const base::Version browser_version_;
48 const std::string extra_request_parameters_; 54 const std::string extra_request_parameters_;
49 55
50 DISALLOW_COPY_AND_ASSIGN(ActionUpdateCheck); 56 DISALLOW_COPY_AND_ASSIGN(ActionUpdateCheck);
51 }; 57 };
52 58
53 } // namespace update_client 59 } // namespace update_client
54 60
55 #endif // COMPONENTS_UPDATE_CLIENT_ACTION_UPDATE_CHECK_H_ 61 #endif // COMPONENTS_UPDATE_CLIENT_ACTION_UPDATE_CHECK_H_
OLDNEW
« no previous file with comments | « no previous file | components/update_client/action_update_check.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698