Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Side by Side Diff: app/clipboard/clipboard_util_win.cc

Issue 2606004: <wininet.h> related cleanup.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/tools/test_shell/test_shell_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | webkit/tools/test_shell/test_shell_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698