OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_INSTALLER_UTIL_CONDITIONAL_WORK_ITEM_LIST_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_CONDITIONAL_WORK_ITEM_LIST_H_ |
6 #define CHROME_INSTALLER_UTIL_CONDITIONAL_WORK_ITEM_LIST_H_ | 6 #define CHROME_INSTALLER_UTIL_CONDITIONAL_WORK_ITEM_LIST_H_ |
7 | 7 |
8 #include "chrome/installer/util/work_item_list.h" | 8 #include "chrome/installer/util/work_item_list.h" |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 bool ShouldRun() const; | 41 bool ShouldRun() const; |
42 | 42 |
43 private: | 43 private: |
44 base::FilePath key_path_; | 44 base::FilePath key_path_; |
45 }; | 45 }; |
46 | 46 |
47 // Condition class that inverts the ShouldRun result of another Condition. | 47 // Condition class that inverts the ShouldRun result of another Condition. |
48 // This class assumes ownership of original_condition. | 48 // This class assumes ownership of original_condition. |
49 class Not : public WorkItem::Condition { | 49 class Not : public WorkItem::Condition { |
50 public: | 50 public: |
51 explicit Not(WorkItem::Condition* original_condition) | 51 explicit Not(WorkItem::Condition* original_condition); |
52 : original_condition_(original_condition) {} | 52 ~Not(); |
| 53 |
53 bool ShouldRun() const; | 54 bool ShouldRun() const; |
54 | 55 |
55 private: | 56 private: |
56 scoped_ptr<WorkItem::Condition> original_condition_; | 57 scoped_ptr<WorkItem::Condition> original_condition_; |
57 }; | 58 }; |
58 | 59 |
59 | |
60 #endif // CHROME_INSTALLER_UTIL_CONDITIONAL_WORK_ITEM_LIST_H_ | 60 #endif // CHROME_INSTALLER_UTIL_CONDITIONAL_WORK_ITEM_LIST_H_ |
OLD | NEW |