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

Side by Side Diff: ui/base/clipboard/clipboard_util_win.cc

Issue 740003003: Revert of Rewrite clipboard write IPC handling to be easier to understand. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
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/clipboard/clipboard_util_win.h" 5 #include "ui/base/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> // For INTERNET_MAX_URL_LENGTH. 9 #include <wininet.h> // For INTERNET_MAX_URL_LENGTH.
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/file_path.h"
13 #include "base/logging.h" 12 #include "base/logging.h"
14 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
15 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
16 #include "base/strings/sys_string_conversions.h" 15 #include "base/strings/sys_string_conversions.h"
17 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
18 #include "base/win/scoped_hglobal.h" 17 #include "base/win/scoped_hglobal.h"
19 #include "net/base/filename_util.h" 18 #include "net/base/filename_util.h"
20 #include "ui/base/clipboard/clipboard.h" 19 #include "ui/base/clipboard/clipboard.h"
21 #include "ui/base/clipboard/custom_data_helper.h" 20 #include "ui/base/clipboard/custom_data_helper.h"
22 #include "url/gurl.h" 21 #include "url/gurl.h"
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 end_fragment_start + end_fragment_str.length())); 493 end_fragment_start + end_fragment_str.length()));
495 } 494 }
496 } else { 495 } else {
497 *fragment_start = cf_html.find('>', tag_start) + 1; 496 *fragment_start = cf_html.find('>', tag_start) + 1;
498 size_t tag_end = cf_html.rfind("<!--EndFragment", std::string::npos); 497 size_t tag_end = cf_html.rfind("<!--EndFragment", std::string::npos);
499 *fragment_end = cf_html.rfind('<', tag_end); 498 *fragment_end = cf_html.rfind('<', tag_end);
500 } 499 }
501 } 500 }
502 501
503 } // namespace ui 502 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/clipboard/clipboard_test_template.h ('k') | ui/base/clipboard/scoped_clipboard_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698