| OLD | NEW |
| 1 // Copyright (c) 2009 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 APP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ | 5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ |
| 6 #define APP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ | 6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <objidl.h> | 9 #include <objidl.h> |
| 10 #include <shlobj.h> | 10 #include <shlobj.h> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "app/os_exchange_data.h" | |
| 14 #include "base/scoped_comptr_win.h" | 13 #include "base/scoped_comptr_win.h" |
| 14 #include "ui/base/dragdrop/os_exchange_data.h" |
| 15 |
| 16 namespace ui { |
| 15 | 17 |
| 16 class DataObjectImpl : public DownloadFileObserver, | 18 class DataObjectImpl : public DownloadFileObserver, |
| 17 public IDataObject, | 19 public IDataObject, |
| 18 public IAsyncOperation { | 20 public IAsyncOperation { |
| 19 public: | 21 public: |
| 20 class Observer { | 22 class Observer { |
| 21 public: | 23 public: |
| 22 virtual void OnWaitForData() = 0; | 24 virtual void OnWaitForData() = 0; |
| 23 virtual void OnDataObjectDisposed() = 0; | 25 virtual void OnDataObjectDisposed() = 0; |
| 24 protected: | 26 protected: |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 virtual void SetDownloadFileInfo( | 168 virtual void SetDownloadFileInfo( |
| 167 const OSExchangeData::DownloadFileInfo& download_info); | 169 const OSExchangeData::DownloadFileInfo& download_info); |
| 168 | 170 |
| 169 private: | 171 private: |
| 170 scoped_refptr<DataObjectImpl> data_; | 172 scoped_refptr<DataObjectImpl> data_; |
| 171 ScopedComPtr<IDataObject> source_object_; | 173 ScopedComPtr<IDataObject> source_object_; |
| 172 | 174 |
| 173 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); | 175 DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderWin); |
| 174 }; | 176 }; |
| 175 | 177 |
| 176 #endif // APP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ | 178 } // namespace ui |
| 179 |
| 180 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_WIN_H_ |
| OLD | NEW |