| 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 CHROME_INSTALLER_UTIL_CREATE_DIR_WORK_ITEM_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_CREATE_DIR_WORK_ITEM_H_ |
| 6 #define CHROME_INSTALLER_UTIL_CREATE_DIR_WORK_ITEM_H_ | 6 #define CHROME_INSTALLER_UTIL_CREATE_DIR_WORK_ITEM_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | |
| 10 #include <windows.h> | 9 #include <windows.h> |
| 11 | 10 |
| 12 #include "base/file_path.h" | 11 #include "base/file_path.h" |
| 13 #include "chrome/installer/util/work_item.h" | 12 #include "chrome/installer/util/work_item.h" |
| 14 | 13 |
| 15 // A WorkItem subclass that creates a directory with the specified path. | 14 // A WorkItem subclass that creates a directory with the specified path. |
| 16 // It also creates all necessary intermediate paths if they do not exist. | 15 // It also creates all necessary intermediate paths if they do not exist. |
| 17 class CreateDirWorkItem : public WorkItem { | 16 class CreateDirWorkItem : public WorkItem { |
| 18 public: | 17 public: |
| 19 virtual ~CreateDirWorkItem(); | 18 virtual ~CreateDirWorkItem(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 39 // Path of the directory to be created. | 38 // Path of the directory to be created. |
| 40 FilePath path_; | 39 FilePath path_; |
| 41 | 40 |
| 42 // The top most directory that needs to be created. | 41 // The top most directory that needs to be created. |
| 43 FilePath top_path_; | 42 FilePath top_path_; |
| 44 | 43 |
| 45 bool rollback_needed_; | 44 bool rollback_needed_; |
| 46 }; | 45 }; |
| 47 | 46 |
| 48 #endif // CHROME_INSTALLER_UTIL_CREATE_DIR_WORK_ITEM_H_ | 47 #endif // CHROME_INSTALLER_UTIL_CREATE_DIR_WORK_ITEM_H_ |
| OLD | NEW |