| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_ | 5 #ifndef WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_ |
| 6 #define WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_ | 6 #define WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <atldef.h> | 9 #include <atldef.h> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/process/process.h" |
| 13 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 14 | 15 |
| 15 namespace base { | 16 namespace base { |
| 16 class CommandLine; | 17 class CommandLine; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace delegate_execute { | 20 namespace delegate_execute { |
| 20 | 21 |
| 21 // Parses a portion of the DelegateExecute handler's command line to determine | 22 // Parses a portion of the DelegateExecute handler's command line to determine |
| 22 // the desired operation. The operation type is decided by looking at the | 23 // the desired operation. The operation type is decided by looking at the |
| (...skipping 29 matching lines...) Expand all Loading... |
| 52 } | 53 } |
| 53 | 54 |
| 54 const base::string16& relaunch_flags() const { | 55 const base::string16& relaunch_flags() const { |
| 55 return relaunch_flags_; | 56 return relaunch_flags_; |
| 56 } | 57 } |
| 57 | 58 |
| 58 const base::string16& mutex() const { | 59 const base::string16& mutex() const { |
| 59 return mutex_; | 60 return mutex_; |
| 60 } | 61 } |
| 61 | 62 |
| 62 // Returns the process id of the parent or 0 on failure. | 63 // Returns the parent process. |
| 63 DWORD GetParentPid() const; | 64 base::Process GetParent() const; |
| 64 | 65 |
| 65 const base::FilePath& shortcut() const { | 66 const base::FilePath& shortcut() const { |
| 66 return relaunch_shortcut_; | 67 return relaunch_shortcut_; |
| 67 } | 68 } |
| 68 | 69 |
| 69 private: | 70 private: |
| 70 OperationType operation_type_; | 71 OperationType operation_type_; |
| 71 base::string16 relaunch_flags_; | 72 base::string16 relaunch_flags_; |
| 72 base::FilePath relaunch_shortcut_; | 73 base::FilePath relaunch_shortcut_; |
| 73 base::string16 mutex_; | 74 base::string16 mutex_; |
| 74 | 75 |
| 75 DISALLOW_COPY_AND_ASSIGN(DelegateExecuteOperation); | 76 DISALLOW_COPY_AND_ASSIGN(DelegateExecuteOperation); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace delegate_execute | 79 } // namespace delegate_execute |
| 79 | 80 |
| 80 #endif // WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_ | 81 #endif // WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_ |
| OLD | NEW |