OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |