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

Side by Side Diff: content/renderer/render_thread.h

Issue 7866019: New implementation of font precache on Windows. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merge to latest trunk Created 9 years, 3 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 | « content/common/view_messages.h ('k') | content/renderer/render_thread.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CONTENT_RENDERER_RENDER_THREAD_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // We initialize WebKit as late as possible. 220 // We initialize WebKit as late as possible.
221 void EnsureWebKitInitialized(); 221 void EnsureWebKitInitialized();
222 222
223 // Helper function to send over a string to be recorded by user metrics 223 // Helper function to send over a string to be recorded by user metrics
224 static void RecordUserMetrics(const std::string& action); 224 static void RecordUserMetrics(const std::string& action);
225 225
226 #if defined(OS_WIN) 226 #if defined(OS_WIN)
227 // Request that the given font be loaded by the browser so it's cached by the 227 // Request that the given font be loaded by the browser so it's cached by the
228 // OS. Please see ChildProcessHost::PreCacheFont for details. 228 // OS. Please see ChildProcessHost::PreCacheFont for details.
229 static bool PreCacheFont(const LOGFONT& log_font); 229 static bool PreCacheFont(const LOGFONT& log_font);
230
231 // Release cached font.
232 static bool ReleaseCachedFonts();
230 #endif // OS_WIN 233 #endif // OS_WIN
231 234
232 private: 235 private:
233 virtual bool OnControlMessageReceived(const IPC::Message& msg); 236 virtual bool OnControlMessageReceived(const IPC::Message& msg);
234 237
235 void Init(); 238 void Init();
236 239
237 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level); 240 void OnSetZoomLevelForCurrentURL(const GURL& url, double zoom_level);
238 void OnDOMStorageEvent(const DOMStorageMsg_Event_Params& params); 241 void OnDOMStorageEvent(const DOMStorageMsg_Event_Params& params);
239 void OnSetNextPageID(int32 next_page_id); 242 void OnSetNextPageID(int32 next_page_id);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 292
290 // Map of registered v8 extensions. The key is the extension name. 293 // Map of registered v8 extensions. The key is the extension name.
291 std::set<std::string> v8_extensions_; 294 std::set<std::string> v8_extensions_;
292 295
293 ObserverList<RenderProcessObserver> observers_; 296 ObserverList<RenderProcessObserver> observers_;
294 297
295 DISALLOW_COPY_AND_ASSIGN(RenderThread); 298 DISALLOW_COPY_AND_ASSIGN(RenderThread);
296 }; 299 };
297 300
298 #endif // CONTENT_RENDERER_RENDER_THREAD_H_ 301 #endif // CONTENT_RENDERER_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698