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_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 bool* cookies_enabled); | 124 bool* cookies_enabled); |
125 void OnPluginFileDialog(const IPC::Message& msg, | 125 void OnPluginFileDialog(const IPC::Message& msg, |
126 bool multiple_files, | 126 bool multiple_files, |
127 const std::wstring& title, | 127 const std::wstring& title, |
128 const std::wstring& filter, | 128 const std::wstring& filter, |
129 uint32 user_data); | 129 uint32 user_data); |
130 | 130 |
131 #if defined(OS_MACOSX) | 131 #if defined(OS_MACOSX) |
132 void OnLoadFont(const FontDescriptor& font, | 132 void OnLoadFont(const FontDescriptor& font, |
133 uint32* handle_size, | 133 uint32* handle_size, |
134 base::SharedMemoryHandle* handle); | 134 base::SharedMemoryHandle* handle, |
| 135 uint32* font_id); |
135 #endif | 136 #endif |
136 | 137 |
137 #if defined(OS_WIN) // This hack is Windows-specific. | 138 #if defined(OS_WIN) // This hack is Windows-specific. |
138 // Cache fonts for the renderer. See RenderMessageFilter::OnPreCacheFont | 139 // Cache fonts for the renderer. See RenderMessageFilter::OnPreCacheFont |
139 // implementation for more details. | 140 // implementation for more details. |
140 void OnPreCacheFont(LOGFONT font); | 141 void OnPreCacheFont(LOGFONT font); |
141 #endif | 142 #endif |
142 | 143 |
143 #if !defined(OS_MACOSX) | 144 #if !defined(OS_MACOSX) |
144 // Not handled in the IO thread on Mac. | 145 // Not handled in the IO thread on Mac. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 base::TimeTicks last_plugin_refresh_time_; | 250 base::TimeTicks last_plugin_refresh_time_; |
250 | 251 |
251 scoped_refptr<WebKitContext> webkit_context_; | 252 scoped_refptr<WebKitContext> webkit_context_; |
252 | 253 |
253 int render_process_id_; | 254 int render_process_id_; |
254 | 255 |
255 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); | 256 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); |
256 }; | 257 }; |
257 | 258 |
258 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 259 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
OLD | NEW |