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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 897563002: Unify the three places that patch font loading for PDFium on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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 "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 17 matching lines...) Expand all
28 #include "base/strings/string_split.h" 28 #include "base/strings/string_split.h"
29 #include "base/strings/string_util.h" 29 #include "base/strings/string_util.h"
30 #include "base/strings/sys_string_conversions.h" 30 #include "base/strings/sys_string_conversions.h"
31 #include "base/strings/utf_string_conversions.h" 31 #include "base/strings/utf_string_conversions.h"
32 #include "base/time/time.h" 32 #include "base/time/time.h"
33 #include "base/trace_event/trace_event.h" 33 #include "base/trace_event/trace_event.h"
34 #include "cc/base/switches.h" 34 #include "cc/base/switches.h"
35 #include "content/child/appcache/appcache_dispatcher.h" 35 #include "content/child/appcache/appcache_dispatcher.h"
36 #include "content/child/appcache/web_application_cache_host_impl.h" 36 #include "content/child/appcache/web_application_cache_host_impl.h"
37 #include "content/child/child_shared_bitmap_manager.h" 37 #include "content/child/child_shared_bitmap_manager.h"
38 #include "content/child/child_thread.h"
39 #include "content/child/npapi/webplugin_delegate_impl.h" 38 #include "content/child/npapi/webplugin_delegate_impl.h"
40 #include "content/child/request_extra_data.h" 39 #include "content/child/request_extra_data.h"
41 #include "content/child/webmessageportchannel_impl.h" 40 #include "content/child/webmessageportchannel_impl.h"
42 #include "content/common/content_constants_internal.h" 41 #include "content/common/content_constants_internal.h"
43 #include "content/common/database_messages.h" 42 #include "content/common/database_messages.h"
44 #include "content/common/dom_storage/dom_storage_types.h" 43 #include "content/common/dom_storage/dom_storage_types.h"
45 #include "content/common/drag_messages.h" 44 #include "content/common/drag_messages.h"
46 #include "content/common/frame_messages.h" 45 #include "content/common/frame_messages.h"
47 #include "content/common/frame_replication_state.h" 46 #include "content/common/frame_replication_state.h"
48 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 47 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
(...skipping 4044 matching lines...) Expand 10 before | Expand all | Expand 10 after
4093 std::vector<gfx::Size> sizes; 4092 std::vector<gfx::Size> sizes;
4094 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); 4093 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes);
4095 if (!url.isEmpty()) 4094 if (!url.isEmpty())
4096 urls.push_back( 4095 urls.push_back(
4097 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); 4096 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes));
4098 } 4097 }
4099 SendUpdateFaviconURL(urls); 4098 SendUpdateFaviconURL(urls);
4100 } 4099 }
4101 4100
4102 } // namespace content 4101 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698