| Index: chrome/common/win_safe_util.cc
|
| ===================================================================
|
| --- chrome/common/win_safe_util.cc (revision 11111)
|
| +++ chrome/common/win_safe_util.cc (working copy)
|
| @@ -16,73 +16,6 @@
|
|
|
| namespace win_util {
|
|
|
| -// This is the COM IAttachmentExecute interface definition.
|
| -// In the current Chrome headers it is not present because the _WIN32_IE macro
|
| -// is not set at the XPSP2 or IE60 level. We have placed guards to avoid double
|
| -// declaration in case we change the _WIN32_IE macro.
|
| -#ifndef __IAttachmentExecute_INTERFACE_DEFINED__
|
| -#define __IAttachmentExecute_INTERFACE_DEFINED__
|
| -
|
| -typedef
|
| -enum tagATTACHMENT_PROMPT
|
| -{ ATTACHMENT_PROMPT_NONE = 0,
|
| -ATTACHMENT_PROMPT_SAVE = 0x1,
|
| -ATTACHMENT_PROMPT_EXEC = 0x2,
|
| -ATTACHMENT_PROMPT_EXEC_OR_SAVE = 0x3
|
| -} ATTACHMENT_PROMPT;
|
| -
|
| -typedef
|
| -enum tagATTACHMENT_ACTION
|
| -{ ATTACHMENT_ACTION_CANCEL = 0,
|
| -ATTACHMENT_ACTION_SAVE = 0x1,
|
| -ATTACHMENT_ACTION_EXEC = 0x2
|
| -} ATTACHMENT_ACTION;
|
| -
|
| -MIDL_INTERFACE("73db1241-1e85-4581-8e4f-a81e1d0f8c57")
|
| -IAttachmentExecute : public IUnknown
|
| -{
|
| -public:
|
| - virtual HRESULT STDMETHODCALLTYPE SetClientTitle(
|
| - /* [string][in] */ LPCWSTR pszTitle) = 0;
|
| -
|
| - virtual HRESULT STDMETHODCALLTYPE SetClientGuid(
|
| - /* [in] */ REFGUID guid) = 0;
|
| -
|
| - virtual HRESULT STDMETHODCALLTYPE SetLocalPath(
|
| - /* [string][in] */ LPCWSTR pszLocalPath) = 0;
|
| -
|
| - virtual HRESULT STDMETHODCALLTYPE SetFileName(
|
| - /* [string][in] */ LPCWSTR pszFileName) = 0;
|
| -
|
| - virtual HRESULT STDMETHODCALLTYPE SetSource(
|
| - /* [string][in] */ LPCWSTR pszSource) = 0;
|
| -
|
| - virtual HRESULT STDMETHODCALLTYPE SetReferrer(
|
| - /* [string][in] */ LPCWSTR pszReferrer) = 0;
|
| -
|
| - virtual HRESULT STDMETHODCALLTYPE CheckPolicy( void) = 0;
|
| -
|
| - virtual HRESULT STDMETHODCALLTYPE Prompt(
|
| - /* [in] */ HWND hwnd,
|
| - /* [in] */ ATTACHMENT_PROMPT prompt,
|
| - /* [out] */ ATTACHMENT_ACTION *paction) = 0;
|
| -
|
| - virtual HRESULT STDMETHODCALLTYPE Save( void) = 0;
|
| -
|
| - virtual HRESULT STDMETHODCALLTYPE Execute(
|
| - /* [in] */ HWND hwnd,
|
| - /* [string][in] */ LPCWSTR pszVerb,
|
| - HANDLE *phProcess) = 0;
|
| -
|
| - virtual HRESULT STDMETHODCALLTYPE SaveWithUI(
|
| - HWND hwnd) = 0;
|
| -
|
| - virtual HRESULT STDMETHODCALLTYPE ClearClientState( void) = 0;
|
| -
|
| -};
|
| -
|
| -#endif // __IAttachmentExecute_INTERFACE_DEFINED__
|
| -
|
| // This function implementation is based on the attachment execution
|
| // services functionally deployed with IE6 or Service pack 2. This
|
| // functionality is exposed in the IAttachmentExecute COM interface.
|
|
|