| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_BASE_DRAGDROP_DRAG_AND_DROP_URL_UTILS_H |
| 6 #define UI_BASE_DRAGDROP_DRAG_AND_DROP_URL_UTILS_H |
| 7 |
| 8 #include <utility> |
| 9 |
| 10 #include "base/optional.h" |
| 11 #include "base/strings/string16.h" |
| 12 #include "ui/base/dragdrop/os_exchange_data.h" |
| 13 #include "ui/base/ui_base_export.h" |
| 14 #include "url/gurl.h" |
| 15 |
| 16 namespace ui { |
| 17 |
| 18 bool UI_BASE_EXPORT |
| 19 CanBeInterpretedAsURL(const ui::OSExchangeData& data, |
| 20 ui::OSExchangeData::FilenameToURLPolicy policy); |
| 21 |
| 22 // Returns url and title |
| 23 base::Optional<std::pair<GURL, base::string16>> UI_BASE_EXPORT |
| 24 TryToInterpretAsURL(const ui::OSExchangeData& data, |
| 25 ui::OSExchangeData::FilenameToURLPolicy policy); |
| 26 } // namespace ui |
| 27 |
| 28 #endif // UI_BASE_DRAGDROP_DRAG_AND_DROP_URL_UTILS_H |
| OLD | NEW |