| 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 #include "app/os_exchange_data.h" | 5 #include "ui/base/dragdrop/os_exchange_data.h" |
| 6 | 6 |
| 7 #include "base/pickle.h" | 7 #include "base/pickle.h" |
| 8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 9 | 9 |
| 10 namespace ui { |
| 11 |
| 10 OSExchangeData::DownloadFileInfo::DownloadFileInfo( | 12 OSExchangeData::DownloadFileInfo::DownloadFileInfo( |
| 11 const FilePath& filename, | 13 const FilePath& filename, |
| 12 DownloadFileProvider* downloader) | 14 DownloadFileProvider* downloader) |
| 13 : filename(filename), | 15 : filename(filename), |
| 14 downloader(downloader) { | 16 downloader(downloader) { |
| 15 } | 17 } |
| 16 | 18 |
| 17 OSExchangeData::DownloadFileInfo::~DownloadFileInfo() {} | 19 OSExchangeData::DownloadFileInfo::~DownloadFileInfo() {} |
| 18 | 20 |
| 19 OSExchangeData::OSExchangeData() : provider_(CreateProvider()) { | 21 OSExchangeData::OSExchangeData() : provider_(CreateProvider()) { |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 } | 137 } |
| 136 | 138 |
| 137 bool OSExchangeData::GetHtml(std::wstring* html, GURL* base_url) const { | 139 bool OSExchangeData::GetHtml(std::wstring* html, GURL* base_url) const { |
| 138 return provider_->GetHtml(html, base_url); | 140 return provider_->GetHtml(html, base_url); |
| 139 } | 141 } |
| 140 | 142 |
| 141 void OSExchangeData::SetDownloadFileInfo(const DownloadFileInfo& download) { | 143 void OSExchangeData::SetDownloadFileInfo(const DownloadFileInfo& download) { |
| 142 return provider_->SetDownloadFileInfo(download); | 144 return provider_->SetDownloadFileInfo(download); |
| 143 } | 145 } |
| 144 #endif | 146 #endif |
| 147 |
| 148 } // namespace ui |
| OLD | NEW |