| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/clipboard/clipboard_util_win.h" | 5 #include "app/clipboard/clipboard_util_win.h" |
| 6 | 6 |
| 7 #include <shellapi.h> | 7 #include <shellapi.h> |
| 8 #include <shlwapi.h> | 8 #include <shlwapi.h> |
| 9 #include <wininet.h> | 9 #include <wininet.h> // For INTERNET_MAX_URL_LENGTH. |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/scoped_handle.h" | 13 #include "base/scoped_handle.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 bool GetUrlFromHDrop(IDataObject* data_object, std::wstring* url, | 19 bool GetUrlFromHDrop(IDataObject* data_object, std::wstring* url, |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 size_t tag_end = cf_html.rfind("<!--EndFragment", std::string::npos); | 530 size_t tag_end = cf_html.rfind("<!--EndFragment", std::string::npos); |
| 531 fragment_end = cf_html.rfind('<', tag_end); | 531 fragment_end = cf_html.rfind('<', tag_end); |
| 532 } | 532 } |
| 533 if (fragment_start != std::string::npos && | 533 if (fragment_start != std::string::npos && |
| 534 fragment_end != std::string::npos) { | 534 fragment_end != std::string::npos) { |
| 535 *html = cf_html.substr(fragment_start, fragment_end - fragment_start); | 535 *html = cf_html.substr(fragment_start, fragment_end - fragment_start); |
| 536 TrimWhitespace(*html, TRIM_ALL, html); | 536 TrimWhitespace(*html, TRIM_ALL, html); |
| 537 } | 537 } |
| 538 } | 538 } |
| 539 } | 539 } |
| OLD | NEW |