OLD | NEW |
---|---|
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
123 IPC::Message* reply_msg); | 127 IPC::Message* reply_msg); |
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) |
jeremy
2012/04/04 08:35:38
Can you add a comment here:
// Messages for OOP fo
bashi
2012/04/04 09:36:22
Done.
| |
134 void OnLoadFont(const FontDescriptor& font, | 138 void OnLoadFont(const FontDescriptor& font, IPC::Message* reply_msg); |
135 uint32* handle_size, | 139 void SendLoadFontReply(IPC::Message* reply, FontLoader::Result* result); |
136 base::SharedMemoryHandle* handle, | |
137 uint32* font_id); | |
138 #endif | 140 #endif |
139 | 141 |
140 #if defined(OS_WIN) && !defined(USE_AURA) | 142 #if defined(OS_WIN) && !defined(USE_AURA) |
141 // On Windows, we handle these on the IO thread to avoid a deadlock with | 143 // 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. | 144 // plugins. On non-Windows systems, we need to handle them on the UI thread. |
143 void OnGetWindowRect(gfx::NativeViewId window, gfx::Rect* rect); | 145 void OnGetWindowRect(gfx::NativeViewId window, gfx::Rect* rect); |
144 void OnGetRootWindowRect(gfx::NativeViewId window, gfx::Rect* rect); | 146 void OnGetRootWindowRect(gfx::NativeViewId window, gfx::Rect* rect); |
145 #endif | 147 #endif |
146 | 148 |
147 void OnGetPlugins(bool refresh, IPC::Message* reply_msg); | 149 void OnGetPlugins(bool refresh, IPC::Message* reply_msg); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
267 int cpu_usage_; | 269 int cpu_usage_; |
268 // Used for sampling CPU usage of the renderer process. | 270 // Used for sampling CPU usage of the renderer process. |
269 scoped_ptr<base::ProcessMetrics> process_metrics_; | 271 scoped_ptr<base::ProcessMetrics> process_metrics_; |
270 | 272 |
271 content::MediaObserver* media_observer_; | 273 content::MediaObserver* media_observer_; |
272 | 274 |
273 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); | 275 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); |
274 }; | 276 }; |
275 | 277 |
276 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ | 278 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ |
OLD | NEW |