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

Side by Side Diff: content/browser/renderer_host/render_message_filter.h

Issue 10052006: Merge 131324 - Mac: OOP font loading should run on FILE thread. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
Patch Set: Created 8 years, 8 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 | « no previous file | content/browser/renderer_host/render_message_filter.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) 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 #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>
11 #endif 11 #endif
12 12
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/file_path.h" 16 #include "base/file_path.h"
17 #include "base/memory/linked_ptr.h" 17 #include "base/memory/linked_ptr.h"
18 #include "base/message_loop_helpers.h" 18 #include "base/message_loop_helpers.h"
19 #include "base/shared_memory.h" 19 #include "base/shared_memory.h"
20 #include "base/string16.h" 20 #include "base/string16.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" 22 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h"
23 #include "content/public/browser/browser_message_filter.h" 23 #include "content/public/browser/browser_message_filter.h"
24 #include "media/base/channel_layout.h" 24 #include "media/base/channel_layout.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
26 #include "ui/gfx/native_widget_types.h" 26 #include "ui/gfx/native_widget_types.h"
27 #include "ui/gfx/surface/transport_dib.h" 27 #include "ui/gfx/surface/transport_dib.h"
28 28
29 #if defined(OS_MACOSX)
30 #include "content/common/mac/font_loader.h"
31 #endif
32
29 class DOMStorageContextImpl; 33 class DOMStorageContextImpl;
30 class PluginServiceImpl; 34 class PluginServiceImpl;
31 class RenderWidgetHelper; 35 class RenderWidgetHelper;
32 struct FontDescriptor; 36 struct FontDescriptor;
33 struct ViewHostMsg_CreateWindow_Params; 37 struct ViewHostMsg_CreateWindow_Params;
34 38
35 namespace WebKit { 39 namespace WebKit {
36 struct WebScreenInfo; 40 struct WebScreenInfo;
37 } 41 }
38 42
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void OnGetRawCookies(const GURL& url, 128 void OnGetRawCookies(const GURL& url,
125 const GURL& first_party_for_cookies, 129 const GURL& first_party_for_cookies,
126 IPC::Message* reply_msg); 130 IPC::Message* reply_msg);
127 void OnDeleteCookie(const GURL& url, 131 void OnDeleteCookie(const GURL& url,
128 const std::string& cookieName); 132 const std::string& cookieName);
129 void OnCookiesEnabled(const GURL& url, 133 void OnCookiesEnabled(const GURL& url,
130 const GURL& first_party_for_cookies, 134 const GURL& first_party_for_cookies,
131 bool* cookies_enabled); 135 bool* cookies_enabled);
132 136
133 #if defined(OS_MACOSX) 137 #if defined(OS_MACOSX)
134 void OnLoadFont(const FontDescriptor& font, 138 // Messages for OOP font loading.
135 uint32* handle_size, 139 void OnLoadFont(const FontDescriptor& font, IPC::Message* reply_msg);
136 base::SharedMemoryHandle* handle, 140 void SendLoadFontReply(IPC::Message* reply, FontLoader::Result* result);
137 uint32* font_id);
138 #endif 141 #endif
139 142
140 #if defined(OS_WIN) && !defined(USE_AURA) 143 #if defined(OS_WIN) && !defined(USE_AURA)
141 // On Windows, we handle these on the IO thread to avoid a deadlock with 144 // On Windows, we handle these on the IO thread to avoid a deadlock with
142 // plugins. On non-Windows systems, we need to handle them on the UI thread. 145 // plugins. On non-Windows systems, we need to handle them on the UI thread.
143 void OnGetWindowRect(gfx::NativeViewId window, gfx::Rect* rect); 146 void OnGetWindowRect(gfx::NativeViewId window, gfx::Rect* rect);
144 void OnGetRootWindowRect(gfx::NativeViewId window, gfx::Rect* rect); 147 void OnGetRootWindowRect(gfx::NativeViewId window, gfx::Rect* rect);
145 #endif 148 #endif
146 149
147 void OnGetPlugins(bool refresh, IPC::Message* reply_msg); 150 void OnGetPlugins(bool refresh, IPC::Message* reply_msg);
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 int cpu_usage_; 270 int cpu_usage_;
268 // Used for sampling CPU usage of the renderer process. 271 // Used for sampling CPU usage of the renderer process.
269 scoped_ptr<base::ProcessMetrics> process_metrics_; 272 scoped_ptr<base::ProcessMetrics> process_metrics_;
270 273
271 content::MediaObserver* media_observer_; 274 content::MediaObserver* media_observer_;
272 275
273 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); 276 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter);
274 }; 277 };
275 278
276 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 279 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698