OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_RESQUEST_PREP_ACTION_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_RESQUEST_PREP_ACTION_H__ |
6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_RESQUEST_PREP_ACTION_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_RESQUEST_PREP_ACTION_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "update_engine/action.h" | 9 #include "update_engine/action.h" |
10 #include "update_engine/update_check_action.h" | 10 #include "update_engine/omaha_request_action.h" |
11 | 11 |
12 // This gathers local system information and prepares info used by the | 12 // This gathers local system information and prepares info used by the |
13 // update check action. | 13 // update check action. |
14 | 14 |
15 namespace chromeos_update_engine { | 15 namespace chromeos_update_engine { |
16 | 16 |
17 class OmahaRequestPrepAction; | 17 class OmahaRequestPrepAction; |
18 class NoneType; | 18 class NoneType; |
19 | 19 |
20 template<> | 20 template<> |
21 class ActionTraits<OmahaRequestPrepAction> { | 21 class ActionTraits<OmahaRequestPrepAction> { |
22 public: | 22 public: |
23 typedef NoneType InputObjectType; | 23 typedef NoneType InputObjectType; |
24 typedef UpdateCheckParams OutputObjectType; | 24 typedef OmahaRequestParams OutputObjectType; |
25 }; | 25 }; |
26 | 26 |
27 class OmahaRequestPrepAction : public Action<OmahaRequestPrepAction> { | 27 class OmahaRequestPrepAction : public Action<OmahaRequestPrepAction> { |
28 public: | 28 public: |
29 explicit OmahaRequestPrepAction(bool force_full_update) | 29 explicit OmahaRequestPrepAction(bool force_full_update) |
30 : force_full_update_(force_full_update) {} | 30 : force_full_update_(force_full_update) {} |
31 typedef ActionTraits<OmahaRequestPrepAction>::InputObjectType | 31 typedef ActionTraits<OmahaRequestPrepAction>::InputObjectType |
32 InputObjectType; | 32 InputObjectType; |
33 typedef ActionTraits<OmahaRequestPrepAction>::OutputObjectType | 33 typedef ActionTraits<OmahaRequestPrepAction>::OutputObjectType |
34 OutputObjectType; | 34 OutputObjectType; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 // When reading files, prepend root_ to the paths. Useful for testing. | 67 // When reading files, prepend root_ to the paths. Useful for testing. |
68 std::string root_; | 68 std::string root_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(OmahaRequestPrepAction); | 70 DISALLOW_COPY_AND_ASSIGN(OmahaRequestPrepAction); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace chromeos_update_engine | 73 } // namespace chromeos_update_engine |
74 | 74 |
75 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_RESQUEST_PREP_ACTION_H__ | 75 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_OMAHA_RESQUEST_PREP_ACTION_H__ |
OLD | NEW |