OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_H_ | 5 #ifndef APP_OS_EXCHANGE_DATA_H_ |
6 #define APP_OS_EXCHANGE_DATA_H_ | 6 #define APP_OS_EXCHANGE_DATA_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
11 #include <atlbase.h> | |
12 #include <objidl.h> | 11 #include <objidl.h> |
| 12 #include "base/scoped_comptr_win.h" |
13 #endif | 13 #endif |
14 | 14 |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "base/basictypes.h" | 18 #include "base/basictypes.h" |
19 | 19 |
20 class GURL; | 20 class GURL; |
21 class Pickle; | 21 class Pickle; |
22 | 22 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 if (owns_medium) { | 147 if (owns_medium) { |
148 ReleaseStgMedium(medium); | 148 ReleaseStgMedium(medium); |
149 delete medium; | 149 delete medium; |
150 } | 150 } |
151 } | 151 } |
152 }; | 152 }; |
153 | 153 |
154 typedef std::vector<StoredDataInfo*> StoredData; | 154 typedef std::vector<StoredDataInfo*> StoredData; |
155 StoredData contents_; | 155 StoredData contents_; |
156 | 156 |
157 CComPtr<IDataObject> source_object_; | 157 ScopedComPtr<IDataObject> source_object_; |
158 | 158 |
159 LONG ref_count_; | 159 LONG ref_count_; |
160 #endif | 160 #endif |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(OSExchangeData); | 162 DISALLOW_COPY_AND_ASSIGN(OSExchangeData); |
163 }; | 163 }; |
164 | 164 |
165 #endif // APP_OS_EXCHANGE_DATA_H_ | 165 #endif // APP_OS_EXCHANGE_DATA_H_ |
OLD | NEW |