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

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

Issue 574273002: Rewrite clipboard write IPC handling to be easier to understand. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Document 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"
12 #include "base/logging.h" 13 #include "base/logging.h"
13 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
14 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
15 #include "base/strings/sys_string_conversions.h" 16 #include "base/strings/sys_string_conversions.h"
16 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
17 #include "base/win/scoped_hglobal.h" 18 #include "base/win/scoped_hglobal.h"
18 #include "net/base/filename_util.h" 19 #include "net/base/filename_util.h"
19 #include "ui/base/clipboard/clipboard.h" 20 #include "ui/base/clipboard/clipboard.h"
20 #include "ui/base/clipboard/custom_data_helper.h" 21 #include "ui/base/clipboard/custom_data_helper.h"
21 #include "url/gurl.h" 22 #include "url/gurl.h"
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 end_fragment_start + end_fragment_str.length())); 494 end_fragment_start + end_fragment_str.length()));
494 } 495 }
495 } else { 496 } else {
496 *fragment_start = cf_html.find('>', tag_start) + 1; 497 *fragment_start = cf_html.find('>', tag_start) + 1;
497 size_t tag_end = cf_html.rfind("<!--EndFragment", std::string::npos); 498 size_t tag_end = cf_html.rfind("<!--EndFragment", std::string::npos);
498 *fragment_end = cf_html.rfind('<', tag_end); 499 *fragment_end = cf_html.rfind('<', tag_end);
499 } 500 }
500 } 501 }
501 502
502 } // namespace ui 503 } // 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