| 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 #include "ui/base/dragdrop/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 "url/gurl.h" | 8 #include "url/gurl.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 void OSExchangeData::SetPickledData(const CustomFormat& format, | 56 void OSExchangeData::SetPickledData(const CustomFormat& format, |
| 57 const Pickle& data) { | 57 const Pickle& data) { |
| 58 provider_->SetPickledData(format, data); | 58 provider_->SetPickledData(format, data); |
| 59 } | 59 } |
| 60 | 60 |
| 61 bool OSExchangeData::GetString(base::string16* data) const { | 61 bool OSExchangeData::GetString(base::string16* data) const { |
| 62 return provider_->GetString(data); | 62 return provider_->GetString(data); |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool OSExchangeData::GetURLAndTitle(GURL* url, base::string16* title) const { | 65 bool OSExchangeData::GetURLAndTitle(FilenameToURLPolicy policy, |
| 66 return provider_->GetURLAndTitle(url, title); | 66 GURL* url, |
| 67 base::string16* title) const { |
| 68 return provider_->GetURLAndTitle(policy, url, title); |
| 67 } | 69 } |
| 68 | 70 |
| 69 bool OSExchangeData::GetFilename(base::FilePath* path) const { | 71 bool OSExchangeData::GetFilename(base::FilePath* path) const { |
| 70 return provider_->GetFilename(path); | 72 return provider_->GetFilename(path); |
| 71 } | 73 } |
| 72 | 74 |
| 73 bool OSExchangeData::GetFilenames( | 75 bool OSExchangeData::GetFilenames( |
| 74 std::vector<FileInfo>* filenames) const { | 76 std::vector<FileInfo>* filenames) const { |
| 75 return provider_->GetFilenames(filenames); | 77 return provider_->GetFilenames(filenames); |
| 76 } | 78 } |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 void OSExchangeData::SetHtml(const base::string16& html, const GURL& base_url) { | 172 void OSExchangeData::SetHtml(const base::string16& html, const GURL& base_url) { |
| 171 provider_->SetHtml(html, base_url); | 173 provider_->SetHtml(html, base_url); |
| 172 } | 174 } |
| 173 | 175 |
| 174 bool OSExchangeData::GetHtml(base::string16* html, GURL* base_url) const { | 176 bool OSExchangeData::GetHtml(base::string16* html, GURL* base_url) const { |
| 175 return provider_->GetHtml(html, base_url); | 177 return provider_->GetHtml(html, base_url); |
| 176 } | 178 } |
| 177 #endif | 179 #endif |
| 178 | 180 |
| 179 } // namespace ui | 181 } // namespace ui |
| OLD | NEW |